Beispiel #1
0
        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();
        }
Beispiel #2
0
 protected FormsAppCompatActivity()
 {
     _previousState = AndroidApplicationLifecycleState.Uninitialized;
     _currentState  = AndroidApplicationLifecycleState.Uninitialized;
     PopupManager.Subscribe(this);
 }