|
@@ -66,22 +66,16 @@ public class Navigator extends ParentController {
|
66
|
66
|
}
|
67
|
67
|
|
68
|
68
|
public void push(final String fromId, final ViewController viewController) {
|
69
|
|
- ViewController found = findControllerById(fromId);
|
70
|
|
- if (found == null) return;
|
71
|
|
-
|
72
|
|
- StackController parentStackController = found.getParentStackController();
|
73
|
|
- if (parentStackController == null) return;
|
74
|
|
-
|
75
|
|
- parentStackController.push(viewController);
|
|
69
|
+ StackController parentStackController = findParentStackControllerForChildId(fromId);
|
|
70
|
+ if (parentStackController != null) {
|
|
71
|
+ parentStackController.push(viewController);
|
|
72
|
+ }
|
76
|
73
|
}
|
77
|
74
|
|
78
|
75
|
public void pop(final String fromId) {
|
79
|
|
- ViewController found = findControllerById(fromId);
|
80
|
|
- if (found == null) return;
|
81
|
|
-
|
82
|
|
- StackController parentStackController = found.getParentStackController();
|
83
|
|
- if (parentStackController == null) return;
|
84
|
|
-
|
85
|
|
- parentStackController.pop();
|
|
76
|
+ StackController parentStackController = findParentStackControllerForChildId(fromId);
|
|
77
|
+ if (parentStackController != null) {
|
|
78
|
+ parentStackController.pop();
|
|
79
|
+ }
|
86
|
80
|
}
|
87
|
81
|
}
|