|
@@ -105,6 +105,8 @@ public class StackController extends ParentController<StackLayout> {
|
105
|
105
|
getView().removeView(toRemove.getView());
|
106
|
106
|
listener.onSuccess(child.getId());
|
107
|
107
|
}
|
|
108
|
+ } else {
|
|
109
|
+ listener.onSuccess(child.getId());
|
108
|
110
|
}
|
109
|
111
|
}
|
110
|
112
|
|
|
@@ -138,9 +140,7 @@ public class StackController extends ParentController<StackLayout> {
|
138
|
140
|
final ViewController appearing = stack.peek();
|
139
|
141
|
disappearing.onViewWillDisappear();
|
140
|
142
|
appearing.onViewWillAppear();
|
141
|
|
- getView().onChildWillDisappear(disappearing.options, appearing.options, () ->
|
142
|
|
- getView().addView(appearing.getView())
|
143
|
|
- );
|
|
143
|
+ getView().onChildWillDisappear(disappearing.options, appearing.options, () -> getView().addView(appearing.getView(), 0));
|
144
|
144
|
|
145
|
145
|
if (disappearing.options.animated.isTrueOrUndefined()) {
|
146
|
146
|
animator.pop(disappearing.getView(), () -> finishPopping(disappearing, listener));
|