|
@@ -136,7 +136,7 @@ public class NavigationActivity extends AppCompatActivity implements DefaultHard
|
136
|
136
|
}
|
137
|
137
|
|
138
|
138
|
void push(ScreenParams params) {
|
139
|
|
- if (modalController.isShowing()) {
|
|
139
|
+ if (modalController.containsNavigator(params.getNavigatorId())) {
|
140
|
140
|
modalController.push(params);
|
141
|
141
|
} else {
|
142
|
142
|
layout.push(params);
|
|
@@ -144,7 +144,7 @@ public class NavigationActivity extends AppCompatActivity implements DefaultHard
|
144
|
144
|
}
|
145
|
145
|
|
146
|
146
|
void pop(ScreenParams params) {
|
147
|
|
- if (modalController.isShowing()) {
|
|
147
|
+ if (modalController.containsNavigator(params.getNavigatorId())) {
|
148
|
148
|
modalController.pop(params);
|
149
|
149
|
} else {
|
150
|
150
|
layout.pop(params);
|
|
@@ -152,7 +152,7 @@ public class NavigationActivity extends AppCompatActivity implements DefaultHard
|
152
|
152
|
}
|
153
|
153
|
|
154
|
154
|
void popToRoot(ScreenParams params) {
|
155
|
|
- if (modalController.isShowing()) {
|
|
155
|
+ if (modalController.containsNavigator(params.getNavigatorId())) {
|
156
|
156
|
modalController.popToRoot(params);
|
157
|
157
|
} else {
|
158
|
158
|
layout.popToRoot(params);
|
|
@@ -160,7 +160,7 @@ public class NavigationActivity extends AppCompatActivity implements DefaultHard
|
160
|
160
|
}
|
161
|
161
|
|
162
|
162
|
void newStack(ScreenParams params) {
|
163
|
|
- if (modalController.isShowing()) {
|
|
163
|
+ if (modalController.containsNavigator(params.getNavigatorId())) {
|
164
|
164
|
modalController.newStack(params);
|
165
|
165
|
} else {
|
166
|
166
|
layout.newStack(params);
|