summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorDanielle Millett <dmillett@google.com>2012-05-29 06:27:14 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-29 06:27:14 -0700
commitd965019105a4a6bb4c924fe063b4c69c4b8020a6 (patch)
treeccb82e3f4db1c72cb64b74a326cc84d6bbd67505 /policy
parent592a3f544745f19d9901692700a1b439b9f8c57b (diff)
parent45973d6d19eb9329d77e62004e80f63f111a27e5 (diff)
downloadframeworks_base-d965019105a4a6bb4c924fe063b4c69c4b8020a6.zip
frameworks_base-d965019105a4a6bb4c924fe063b4c69c4b8020a6.tar.gz
frameworks_base-d965019105a4a6bb4c924fe063b4c69c4b8020a6.tar.bz2
am 45973d6d: Merge "Moved setting the flag to suppress face unlock during a phone call" into jb-dev
* commit '45973d6d19eb9329d77e62004e80f63f111a27e5': Moved setting the flag to suppress face unlock during a phone call
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java16
1 files changed, 11 insertions, 5 deletions
diff --git a/policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java b/policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java
index 049e6ac..518d8e9 100644
--- a/policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java
+++ b/policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java
@@ -532,11 +532,6 @@ public class LockPatternKeyguardView extends KeyguardViewBase {
if (DEBUG) Log.d(TAG, "screen off");
mScreenOn = false;
mForgotPattern = false;
- if (mBiometricUnlock != null) {
- mSuppressBiometricUnlock =
- mUpdateMonitor.getPhoneState() != TelephonyManager.CALL_STATE_IDLE
- || mHasDialog;
- }
// Emulate activity life-cycle for both lock and unlock screen.
if (mLockScreen != null) {
@@ -991,6 +986,17 @@ public class LockPatternKeyguardView extends KeyguardViewBase {
restartBiometricUnlock = mBiometricUnlock.stop();
}
+ // Prevents biometric unlock from coming up immediately after a phone call or if there
+ // is a dialog on top of lockscreen. It is only updated if the screen is off because if the
+ // screen is on it's either because of an orientation change, or when it first boots.
+ // In both those cases, we don't want to override the current value of
+ // mSuppressBiometricUnlock and instead want to use the previous value.
+ if (!mScreenOn) {
+ mSuppressBiometricUnlock =
+ mUpdateMonitor.getPhoneState() != TelephonyManager.CALL_STATE_IDLE
+ || mHasDialog;
+ }
+
// If the biometric unlock is not being used, we don't bother constructing it. Then we can
// simply check if it is null when deciding whether we should make calls to it.
mBiometricUnlock = null;