protected override void OnDestroy() { PreviousActivityDestroying.Reset(); if (_application != null) { _application.PropertyChanging -= AppOnPropertyChanging; _application.PropertyChanged -= AppOnPropertyChanged; } PopupManager.Unsubscribe(this); if (Platform != null) { _layout.RemoveView(Platform); Platform.Dispose(); } PreviousActivityDestroying.Set(); // call at the end to avoid race conditions with Platform dispose base.OnDestroy(); }
protected FormsAppCompatActivity() { _previousState = AndroidApplicationLifecycleState.Uninitialized; _currentState = AndroidApplicationLifecycleState.Uninitialized; PopupManager.Subscribe(this); }