Skip to content

Commit 164ff6b

Browse files
author
Jean-Baptiste Queru
committed
Merge into jb-mr1-dev
Change-Id: I65f9c552cf0ef2792df64c907f0a56913e6c6f30
2 parents fe3632b + 7641506 commit 164ff6b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,15 @@ public boolean isVerifyUnlockOnly() {
243243

244244
public void reportSuccessfulUnlockAttempt() {
245245
KeyguardUpdateMonitor.getInstance(mContext).clearFailedUnlockAttempts();
246+
mLockPatternUtils.reportSuccessfulPasswordAttempt();
246247
}
247248

248249
public void reportFailedUnlockAttempt() {
249-
// TODO: handle biometric attempt differently.
250-
KeyguardHostView.this.reportFailedUnlockAttempt();
250+
if (mCurrentSecuritySelection == SecurityMode.Biometric) {
251+
KeyguardUpdateMonitor.getInstance(mContext).reportFailedBiometricUnlockAttempt();
252+
} else {
253+
KeyguardHostView.this.reportFailedUnlockAttempt();
254+
}
251255
}
252256

253257
public int getFailedAttempts() {

0 commit comments

Comments
 (0)