File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
policy/src/com/android/internal/policy/impl/keyguard Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ private void maybeStartBiometricUnlock() {
144144 Context .POWER_SERVICE );
145145 // TODO: Some of these conditions are handled in KeyguardSecurityModel and may not be
146146 // necessary here.
147- if (monitor .getPhoneState () != TelephonyManager .CALL_STATE_RINGING
147+ if (monitor .getPhoneState () == TelephonyManager .CALL_STATE_IDLE
148148 && !monitor .getMaxBiometricUnlockAttemptsReached ()
149149 && !backupIsTimedOut
150150 && powerManager .isScreenOn ()) {
Original file line number Diff line number Diff line change 1717
1818import android .app .admin .DevicePolicyManager ;
1919import android .content .Context ;
20+ import android .telephony .TelephonyManager ;
2021
2122import com .android .internal .telephony .IccCardConstants ;
2223import com .android .internal .widget .LockPatternUtils ;
@@ -66,7 +67,8 @@ private boolean isBiometricUnlockSuppressed() {
6667 final boolean backupIsTimedOut = monitor .getFailedUnlockAttempts () >=
6768 LockPatternUtils .FAILED_ATTEMPTS_BEFORE_TIMEOUT ;
6869 return monitor .getMaxBiometricUnlockAttemptsReached () || backupIsTimedOut
69- || !monitor .isAlternateUnlockEnabled ();
70+ || !monitor .isAlternateUnlockEnabled ()
71+ || monitor .getPhoneState () != TelephonyManager .CALL_STATE_IDLE ;
7072 }
7173
7274 SecurityMode getSecurityMode () {
You can’t perform that action at this time.
0 commit comments