Esempio n. 1
0
        public void InitActivity()
        {
            bool havePendingUIOperation = false;

            if (string.IsNullOrEmpty(asyncTaskActivityUUID))
            {
                asyncTaskActivityUUID = Guid.NewGuid().ToString();
            }
            else
            {
                havePendingUIOperation = AsyncUIOperationRepeater.INSTATNCE.HavePendingUIOperation(this);
            }

            // If the activity has pending ui operation, that means it was destroyed by os and recreate.
            // And a wait dialog might block the ui. We need to execute ui operation instead of jump to next page.
            if (!havePendingUIOperation)
            {
                if (GlobalAccess.Instance.CurrentUserInfo != null &&
                    (!GlobalAccess.Instance.CurrentUserInfo.NeedChangePassword))
                {
                    // User has login, jump to next page
                    LoginSucceed();
                    return;
                }
            }

            var fragment = SupportFragmentManager.FindFragmentById(Resource.Id.frgForm);

            if (fragment == null)
            {
                var loginFragment = new LoginFragment();
                SupportFragmentManager.BeginTransaction().Add(Resource.Id.frgForm, loginFragment).Commit();
            }
        }
Esempio n. 2
0
 public EditorActionListener(LoginFragment fragment)
 {
     this.fragment = fragment;
 }