Esempio n. 1
0
        protected override void OnResume()
        {
            base.OnResume();
            _design.ReapplyTheme();

            if (TimeoutHelper.CheckShutdown(this, _ioc))
            {
                return;
            }

            //todo: see LockCloseActivity.OnResume
            App.Kp2a.CheckForOpenFileChanged(this);
        }
        protected override void OnResume()
        {
            base.OnResume();

            _design.ReapplyTheme();

            if (Intent.GetBooleanExtra(NoLockCheck, false))
            {
                return;
            }

            if (TimeoutHelper.CheckShutdown(this, _ioc))
            {
                return;
            }

            //todo: it seems like OnResume can be called after dismissing a dialog, e.g. the Delete-permanently-Dialog.
            //in this case the following check might run in parallel with the check performed during the SaveDb check (triggered after the
            //aforementioned dialog is closed) which can cause odd behavior. However, this is a rare case and hard to resolve so this is currently
            //accepted. (If the user clicks cancel on the reload-dialog, everything will work.)
            App.Kp2a.CheckForOpenFileChanged(this);
        }
        protected override void OnResume()
        {
            base.OnResume();

            TimeoutHelper.CheckShutdown(this, _ioc);
        }