소스 검색

Style fixes

Jason Skuby 8 년 전
부모
커밋
0f69d1a91d

+ 1
- 0
android/app/src/main/java/com/reactnativenavigation/activities/BottomTabActivity.java 파일 보기

@@ -157,6 +157,7 @@ public class BottomTabActivity extends BaseReactActivity implements AHBottomNavi
157 157
 
158 158
     public Screen resetTo(Screen screen) {
159 159
         super.resetTo(screen);
160
+        StyleHelper.updateStyles(mToolbar, screen);
160 161
         return mScreenStacks.get(mCurrentStackPosition).resetTo(screen);
161 162
     }
162 163
 

+ 1
- 0
android/app/src/main/java/com/reactnativenavigation/activities/SingleScreenActivity.java 파일 보기

@@ -76,6 +76,7 @@ public class SingleScreenActivity extends BaseReactActivity {
76 76
     public Screen resetTo(Screen screen) {
77 77
         super.resetTo(screen);
78 78
         Screen popped = mScreenStack.resetTo(screen);
79
+        StyleHelper.updateStyles(mToolbar, screen);
79 80
         return popped;
80 81
     }
81 82
 

+ 2
- 1
android/app/src/main/java/com/reactnativenavigation/activities/TabActivity.java 파일 보기

@@ -7,6 +7,7 @@ import com.reactnativenavigation.R;
7 7
 import com.reactnativenavigation.adapters.ViewPagerAdapter;
8 8
 import com.reactnativenavigation.core.RctManager;
9 9
 import com.reactnativenavigation.core.objects.Screen;
10
+import com.reactnativenavigation.utils.StyleHelper;
10 11
 import com.reactnativenavigation.views.RnnTabLayout;
11 12
 import com.reactnativenavigation.views.RnnToolBar;
12 13
 
@@ -68,7 +69,7 @@ public class TabActivity extends BaseReactActivity {
68 69
     @Override
69 70
     public void push(Screen screen) {
70 71
         super.push(screen);
71
-        setNavigationStyle(screen);
72
+        StyleHelper.updateStyles(mToolbar, screen);
72 73
         mAdapter.push(screen);
73 74
     }
74 75