File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
policy/src/com/android/internal/policy/impl/keyguard Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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 () {
You can’t perform that action at this time.
0 commit comments