|
@@ -65,12 +65,12 @@ public class BottomTabsLayout extends RelativeLayout implements Layout, AHBottom
|
65
|
65
|
|
66
|
66
|
private void createAndAddScreens(int position) {
|
67
|
67
|
ScreenParams screenParams = params.tabParams.get(position);
|
68
|
|
- ScreenStack newStack = new ScreenStack(activity, getContentContainer(), screenParams.navigatorId, this);
|
|
68
|
+ ScreenStack newStack = new ScreenStack(activity, getScreenStackParent(), screenParams.navigatorId, this);
|
69
|
69
|
newStack.pushInitialScreen(screenParams, createScreenLayoutParams(screenParams));
|
70
|
70
|
screenStacks[position] = newStack;
|
71
|
71
|
}
|
72
|
72
|
|
73
|
|
- private RelativeLayout getContentContainer() {
|
|
73
|
+ private RelativeLayout getScreenStackParent() {
|
74
|
74
|
return sideMenu == null ? this : sideMenu.getContentContainer();
|
75
|
75
|
}
|
76
|
76
|
|
|
@@ -91,7 +91,7 @@ public class BottomTabsLayout extends RelativeLayout implements Layout, AHBottom
|
91
|
91
|
private void addBottomTabs() {
|
92
|
92
|
LayoutParams lp = new LayoutParams(MATCH_PARENT, WRAP_CONTENT);
|
93
|
93
|
lp.addRule(ALIGN_PARENT_BOTTOM);
|
94
|
|
- getContentContainer().addView(bottomTabs, lp);
|
|
94
|
+ getScreenStackParent().addView(bottomTabs, lp);
|
95
|
95
|
}
|
96
|
96
|
|
97
|
97
|
private void showInitialScreenStack() {
|
|
@@ -197,7 +197,7 @@ public class BottomTabsLayout extends RelativeLayout implements Layout, AHBottom
|
197
|
197
|
currentScreenStack.destroy();
|
198
|
198
|
removeView(currentScreenStack.peek());
|
199
|
199
|
|
200
|
|
- ScreenStack newStack = new ScreenStack(activity, this, params.navigatorId, this);
|
|
200
|
+ ScreenStack newStack = new ScreenStack(activity, getScreenStackParent(), params.navigatorId, this);
|
201
|
201
|
LayoutParams lp = createScreenLayoutParams(params);
|
202
|
202
|
newStack.pushInitialScreen(params, lp);
|
203
|
203
|
screenStacks[currentStackIndex] = newStack;
|