@@ -356,8 +356,8 @@ export class MapboxView extends MapboxViewBase {
356
356
}
357
357
this . nativeView . owner = this ;
358
358
// Application.android.on(AndroidApplication.activityStartedEvent, this.onStart, this);
359
- Application . android . on ( AndroidApplication . activityStartedEvent , this . onPause , this ) ;
360
- Application . android . on ( AndroidApplication . activityStartedEvent , this . onResume , this ) ;
359
+ Application . android . on ( AndroidApplication . activityPausedEvent , this . onPause , this ) ;
360
+ Application . android . on ( AndroidApplication . activityResumedEvent , this . onResume , this ) ;
361
361
// Application.android.on(AndroidApplication.activityStartedEvent, this.onStop, this);
362
362
363
363
super . initNativeView ( ) ;
@@ -383,8 +383,8 @@ export class MapboxView extends MapboxViewBase {
383
383
this . nativeView . owner = null ;
384
384
385
385
// Application.android.off(AndroidApplication.activityStartedEvent, this.onStart, this);
386
- Application . android . off ( AndroidApplication . activityStartedEvent , this . onPause , this ) ;
387
- Application . android . off ( AndroidApplication . activityStartedEvent , this . onResume , this ) ;
386
+ Application . android . off ( AndroidApplication . activityPausedEvent , this . onPause , this ) ;
387
+ Application . android . off ( AndroidApplication . activityResumedEvent , this . onResume , this ) ;
388
388
// Application.android.off(AndroidApplication.activityStartedEvent, this.onStop, this);
389
389
390
390
this . mapbox . destroy ( ) ;
0 commit comments