@@ -356,8 +356,8 @@ export class MapboxView extends MapboxViewBase {
356356 }
357357 this . nativeView . owner = this ;
358358 // 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 ) ;
361361 // Application.android.on(AndroidApplication.activityStartedEvent, this.onStop, this);
362362
363363 super . initNativeView ( ) ;
@@ -383,8 +383,8 @@ export class MapboxView extends MapboxViewBase {
383383 this . nativeView . owner = null ;
384384
385385 // 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 ) ;
388388 // Application.android.off(AndroidApplication.activityStartedEvent, this.onStop, this);
389389
390390 this . mapbox . destroy ( ) ;
0 commit comments