diff options
| author | 2017-08-11 17:24:42 -0700 | |
|---|---|---|
| committer | 2017-08-11 17:24:42 -0700 | |
| commit | 129f60fecc9b87d68718ff0d72832e6aa86e09a8 (patch) | |
| tree | 720993f865733f22b238962f93b304ef74e79480 | |
| parent | 252efbcf40186ac8625aaf57ce519b93022af0f6 (diff) | |
Only auth via FP when device is locked, when Assistant is on top
Fixes: 64586258
Test: 1) swipe FP up 2cm, touch FPS without letting go. device should stay in keyguard but become unlocked
2) launch assistant, touch FPS. No vibration should occur
Test: 1) set up smart lock
2) enter keyguard and make sure smart lock is working (device is unlocked)
3) launch assistant, touch FPS. No vibration should occur
Change-Id: I7177c02c881eee5d6dd2dbabcddc92ec31f8a686
| -rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java b/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java index 669594b86e54..bb6213b8921f 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java @@ -1157,10 +1157,16 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { } } + private boolean shouldListenForFingerprintAssistant() { + return mAssistantVisible && mKeyguardOccluded + && !mUserFingerprintAuthenticated.get(getCurrentUser(), false) + && !mUserHasTrust.get(getCurrentUser(), false); + } + private boolean shouldListenForFingerprint() { return (mKeyguardIsVisible || !mDeviceInteractive || (mBouncer && !mKeyguardGoingAway) || mGoingToSleep || - (mAssistantVisible && mKeyguardOccluded)) + shouldListenForFingerprintAssistant()) && !mSwitchingUser && !isFingerprintDisabled(getCurrentUser()) && !mKeyguardGoingAway; } |