summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2015-07-24 18:15:43 -0700
committerSelim Cinek <cinek@google.com>2015-07-24 18:15:43 -0700
commitad7310f01329c2ce99c57017873664528280999c (patch)
tree78f4903bc87eefda6de9f59747de67dbd64f628d /packages
parent1fcafc49ad34cb8f778862653d452ac0fe61461c (diff)
downloadframeworks_base-ad7310f01329c2ce99c57017873664528280999c.zip
frameworks_base-ad7310f01329c2ce99c57017873664528280999c.tar.gz
frameworks_base-ad7310f01329c2ce99c57017873664528280999c.tar.bz2
Fixed wake to unlock when the device has never been unlocked
Previously the fingerprint could still unlock the device when waking up with the fingerprint sensor, since we were not checking if it is allowed. Bug: 22622999 Change-Id: I039a4e0701c1f161f227cf6f1d25e8147548db47
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
index f595847..7d72dab 100644
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
@@ -460,15 +460,20 @@ public class KeyguardViewMediator extends SystemUI {
@Override
public void onFingerprintAuthenticated(int userId, boolean wakeAndUnlocking) {
+ boolean unlockingWithFingerprintAllowed =
+ mUpdateMonitor.isUnlockingWithFingerprintAllowed();
if (mStatusBarKeyguardViewManager.isBouncerShowing()) {
- if (mUpdateMonitor.isUnlockingWithFingerprintAllowed()) {
+ if (unlockingWithFingerprintAllowed) {
mStatusBarKeyguardViewManager.notifyKeyguardAuthenticated();
}
} else {
- if (wakeAndUnlocking) {
+ if (wakeAndUnlocking && unlockingWithFingerprintAllowed) {
mWakeAndUnlocking = true;
keyguardDone(true, true);
} else {
+ if (wakeAndUnlocking) {
+ mStatusBarKeyguardViewManager.notifyScreenWakeUpRequested();
+ }
mStatusBarKeyguardViewManager.animateCollapsePanels(
FINGERPRINT_COLLAPSE_SPEEDUP_FACTOR);
}