Browse Source

TitleBar hide on scroll (#552)

Fix TitleBar hide on scroll when screen is drawn under TopBar
Guy Carmeli 8 years ago
parent
commit
696fe67833

+ 2
- 2
android/app/src/main/java/com/reactnativenavigation/screens/CollapsingSingleScreen.java View File

@@ -8,9 +8,9 @@ import com.reactnativenavigation.views.CollapsingContentView;
8 8
 import com.reactnativenavigation.views.LeftButtonOnClickListener;
9 9
 import com.reactnativenavigation.views.collapsingToolbar.CollapseAmount;
10 10
 import com.reactnativenavigation.views.collapsingToolbar.CollapseCalculator;
11
-import com.reactnativenavigation.views.collapsingToolbar.CollapsingViewMeasurer;
12 11
 import com.reactnativenavigation.views.collapsingToolbar.CollapsingTopBar;
13 12
 import com.reactnativenavigation.views.collapsingToolbar.CollapsingView;
13
+import com.reactnativenavigation.views.collapsingToolbar.CollapsingViewMeasurer;
14 14
 import com.reactnativenavigation.views.collapsingToolbar.OnScrollListener;
15 15
 import com.reactnativenavigation.views.collapsingToolbar.OnScrollViewAddedListener;
16 16
 import com.reactnativenavigation.views.collapsingToolbar.ScrollListener;
@@ -59,7 +59,7 @@ public class CollapsingSingleScreen extends SingleScreen {
59 59
                 new OnScrollListener() {
60 60
                     @Override
61 61
                     public void onScroll(CollapseAmount amount) {
62
-                        if (!screenParams.styleParams.titleBarHideOnScroll) {
62
+                        if (screenParams.styleParams.drawScreenBelowTopBar) {
63 63
                             ((CollapsingView) contentView).collapse(amount);
64 64
                         }
65 65
                         topBar.collapse(amount);