|
@@ -17,7 +17,6 @@ import com.reactnativenavigation.react.JsDevReloadHandler;
|
17
|
17
|
import com.reactnativenavigation.utils.CommandListener;
|
18
|
18
|
import com.reactnativenavigation.utils.CommandListenerAdapter;
|
19
|
19
|
import com.reactnativenavigation.utils.CompatUtils;
|
20
|
|
-import com.reactnativenavigation.utils.NativeCommandListener;
|
21
|
20
|
import com.reactnativenavigation.viewcontrollers.modal.ModalPresenter;
|
22
|
21
|
import com.reactnativenavigation.viewcontrollers.modal.ModalStack;
|
23
|
22
|
import com.reactnativenavigation.viewcontrollers.stack.StackController;
|
|
@@ -86,9 +85,9 @@ public class Navigator extends ParentController implements JsDevReloadHandler.Re
|
86
|
85
|
}
|
87
|
86
|
|
88
|
87
|
private void destroyViews() {
|
89
|
|
- destroyRoot();
|
90
|
|
- overlayManager.destroy();
|
91
|
88
|
modalStack.dismissAllModals(new CommandListenerAdapter(), root);
|
|
89
|
+ overlayManager.destroy();
|
|
90
|
+ destroyRoot();
|
92
|
91
|
}
|
93
|
92
|
|
94
|
93
|
private void destroyRoot() {
|
|
@@ -189,7 +188,7 @@ public class Navigator extends ParentController implements JsDevReloadHandler.Re
|
189
|
188
|
modalStack.dismissAllModals(listener, root);
|
190
|
189
|
}
|
191
|
190
|
|
192
|
|
- public void showOverlay(ViewController overlay, NativeCommandListener listener) {
|
|
191
|
+ public void showOverlay(ViewController overlay, CommandListener listener) {
|
193
|
192
|
overlayManager.show(rootLayout, overlay, listener);
|
194
|
193
|
}
|
195
|
194
|
|