소스 검색

Remove redundant calls to send screen appear event

Guy Carmeli 7 년 전
부모
커밋
51bc918998
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  1. 0
    6
      android/app/src/main/java/com/reactnativenavigation/controllers/NavigationActivity.java

+ 0
- 6
android/app/src/main/java/com/reactnativenavigation/controllers/NavigationActivity.java 파일 보기

@@ -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) {