/** {@inheritDoc} */ public void onResume() { // reset status mKeyguardStatusViewManager.onResume(); // reset lock pattern mLockPatternView.enableInput(); mLockPatternView.setEnabled(true); mLockPatternView.clearPattern(); // show "forgot pattern?" button if we have an alternate authentication method if (mCallback.doesFallbackUnlockScreenExist()) { showForgotPatternButton(); } else { hideForgotPatternButton(); } // if the user is currently locked out, enforce it. long deadline = mLockPatternUtils.getLockoutAttemptDeadline(); if (deadline != 0) { handleAttemptLockout(deadline); } // the footer depends on how many total attempts the user has failed if (mCallback.isVerifyUnlockOnly()) { updateFooter(FooterMode.VerifyUnlocked); } else if (mEnableFallback && (mTotalFailedPatternAttempts >= LockPatternUtils.FAILED_ATTEMPTS_BEFORE_TIMEOUT)) { updateFooter(FooterMode.ForgotLockPattern); } else { updateFooter(FooterMode.Normal); } }
/** {@inheritDoc} */ public void onResume() { mResuming = true; // reset status mStatusViewManager.onResume(); // start fresh mPasswordEntry.setText(""); mPasswordEntry.requestFocus(); // if the user is currently locked out, enforce it. long deadline = mLockPatternUtils.getLockoutAttemptDeadline(); if (deadline != 0) { handleAttemptLockout(deadline); } mResuming = false; }
/** {@inheritDoc} */ public void onResume() { mStatusViewManager.onResume(); postDelayed(mOnResumePing, ON_RESUME_PING_DELAY); }