Browse Source

Remove redundant calls to send screen appear event

Guy Carmeli 7 years ago
parent
commit
51bc918998

+ 0
- 6
android/app/src/main/java/com/reactnativenavigation/controllers/NavigationActivity.java View File

246
 
246
 
247
     void dismissTopModal() {
247
     void dismissTopModal() {
248
         modalController.dismissTopModal();
248
         modalController.dismissTopModal();
249
-        Screen previousScreen = layout.getCurrentScreen();
250
-        NavigationApplication.instance.getEventEmitter().sendWillAppearEvent(previousScreen.getScreenParams(), NavigationType.DismissModal);
251
-        NavigationApplication.instance.getEventEmitter().sendDidAppearEvent(previousScreen.getScreenParams(), NavigationType.DismissModal);
252
     }
249
     }
253
 
250
 
254
     void dismissAllModals() {
251
     void dismissAllModals() {
255
         modalController.dismissAllModals();
252
         modalController.dismissAllModals();
256
-        Screen previousScreen = layout.getCurrentScreen();
257
-        NavigationApplication.instance.getEventEmitter().sendWillAppearEvent(previousScreen.getScreenParams(), NavigationType.DismissModal);
258
-        NavigationApplication.instance.getEventEmitter().sendDidAppearEvent(previousScreen.getScreenParams(), NavigationType.DismissModal);
259
     }
253
     }
260
 
254
 
261
     public void showLightBox(LightBoxParams params) {
255
     public void showLightBox(LightBoxParams params) {