@@ -607,6 +607,7 @@ - (void)viewWillAppear:(BOOL)animated {
607
607
if (_viewportMetrics.physical_width ) {
608
608
[self surfaceUpdated: YES ];
609
609
}
610
+ NSLog (@" FlutterViewController instance %@ sends AppLifecycleState.inactive" , self);
610
611
[[_engine.get () lifecycleChannel ] sendMessage: @" AppLifecycleState.inactive" ];
611
612
612
613
[super viewWillAppear: animated];
@@ -616,13 +617,15 @@ - (void)viewDidAppear:(BOOL)animated {
616
617
TRACE_EVENT0 (" flutter" , " viewDidAppear" );
617
618
[self onUserSettingsChanged: nil ];
618
619
[self onAccessibilityStatusChanged: nil ];
620
+ NSLog (@" FlutterViewController instance %@ sends AppLifecycleState.inactive" , self);
619
621
[[_engine.get () lifecycleChannel ] sendMessage: @" AppLifecycleState.resumed" ];
620
622
621
623
[super viewDidAppear: animated];
622
624
}
623
625
624
626
- (void )viewWillDisappear : (BOOL )animated {
625
627
TRACE_EVENT0 (" flutter" , " viewWillDisappear" );
628
+ NSLog (@" FlutterViewController instance %@ sends AppLifecycleState.inactive" , self);
626
629
[[_engine.get () lifecycleChannel ] sendMessage: @" AppLifecycleState.inactive" ];
627
630
628
631
[super viewWillDisappear: animated];
@@ -632,6 +635,7 @@ - (void)viewDidDisappear:(BOOL)animated {
632
635
TRACE_EVENT0 (" flutter" , " viewDidDisappear" );
633
636
if ([_engine.get () viewController ] == self) {
634
637
[self surfaceUpdated: NO ];
638
+ NSLog (@" FlutterViewController instance %@ sends AppLifecycleState.inactive" , self);
635
639
[[_engine.get () lifecycleChannel ] sendMessage: @" AppLifecycleState.paused" ];
636
640
[self flushOngoingTouches ];
637
641
[_engine.get () notifyLowMemory ];
0 commit comments