|
|
@@ -137,7 +137,7 @@ public class Navigator extends ParentController {
|
|
137
|
137
|
}
|
|
138
|
138
|
|
|
139
|
139
|
public void mergeOptions(final String componentId, Options options) {
|
|
140
|
|
- ViewController target = findControllerById(componentId);
|
|
|
140
|
+ ViewController target = findController(componentId);
|
|
141
|
141
|
if (target != null) {
|
|
142
|
142
|
target.mergeOptions(options);
|
|
143
|
143
|
}
|
|
|
@@ -160,7 +160,7 @@ public class Navigator extends ParentController {
|
|
160
|
160
|
}
|
|
161
|
161
|
|
|
162
|
162
|
public void popTo(final String id, Options mergeOptions, CommandListener listener) {
|
|
163
|
|
- ViewController target = findControllerById(id);
|
|
|
163
|
+ ViewController target = findController(id);
|
|
164
|
164
|
if (target != null) {
|
|
165
|
165
|
target.performOnParentStack(stack -> ((StackController) stack).popTo(target, mergeOptions, listener));
|
|
166
|
166
|
} else {
|
|
|
@@ -194,13 +194,13 @@ public class Navigator extends ParentController {
|
|
194
|
194
|
|
|
195
|
195
|
@Nullable
|
|
196
|
196
|
@Override
|
|
197
|
|
- public ViewController findControllerById(String id) {
|
|
198
|
|
- ViewController controllerById = super.findControllerById(id);
|
|
|
197
|
+ public ViewController findController(String id) {
|
|
|
198
|
+ ViewController controllerById = super.findController(id);
|
|
199
|
199
|
return controllerById != null ? controllerById : modalStack.findControllerById(id);
|
|
200
|
200
|
}
|
|
201
|
201
|
|
|
202
|
202
|
private void applyOnStack(String fromId, CommandListener listener, Task<StackController> task) {
|
|
203
|
|
- ViewController from = findControllerById(fromId);
|
|
|
203
|
+ ViewController from = findController(fromId);
|
|
204
|
204
|
if (from != null) {
|
|
205
|
205
|
if (from instanceof StackController) {
|
|
206
|
206
|
task.run((StackController) from);
|