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,16 +246,10 @@ public class NavigationActivity extends AppCompatActivity implements DefaultHard
246 246
 
247 247
     void dismissTopModal() {
248 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 251
     void dismissAllModals() {
255 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 255
     public void showLightBox(LightBoxParams params) {