diff options
| author | 2012-09-25 09:42:28 -0700 | |
|---|---|---|
| committer | 2012-09-25 09:42:30 -0700 | |
| commit | 164ff6bb64ad022366e9fdec9b40bcedcbb3925a (patch) | |
| tree | 478e39f12d2b241bdc175b6d6c11d49ab218532a | |
| parent | fe3632bcbea6aabe0e363c00097767465a1d7797 (diff) | |
| parent | 7641506e3cc493ac4e6f5037fd76516754e61c6e (diff) | |
Merge into jb-mr1-dev
Change-Id: I65f9c552cf0ef2792df64c907f0a56913e6c6f30
| -rw-r--r-- | policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java index 1a4eeb2300ad..2e7228cb51ec 100644 --- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java +++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java @@ -243,11 +243,15 @@ public class KeyguardHostView extends KeyguardViewBase { public void reportSuccessfulUnlockAttempt() { KeyguardUpdateMonitor.getInstance(mContext).clearFailedUnlockAttempts(); + mLockPatternUtils.reportSuccessfulPasswordAttempt(); } public void reportFailedUnlockAttempt() { - // TODO: handle biometric attempt differently. - KeyguardHostView.this.reportFailedUnlockAttempt(); + if (mCurrentSecuritySelection == SecurityMode.Biometric) { + KeyguardUpdateMonitor.getInstance(mContext).reportFailedBiometricUnlockAttempt(); + } else { + KeyguardHostView.this.reportFailedUnlockAttempt(); + } } public int getFailedAttempts() { |