summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2015-07-25 01:48:16 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-25 01:48:16 +0000
commitd9f1a0c3a42bcc1f7b8cd82be8eed60f5438f091 (patch)
tree98a306709f4980f613b5cd70ad9ed1180e586574
parentf325548992d449a2da564216191edb5ad2773bfd (diff)
parentad7310f01329c2ce99c57017873664528280999c (diff)
downloadframeworks_base-d9f1a0c3a42bcc1f7b8cd82be8eed60f5438f091.zip
frameworks_base-d9f1a0c3a42bcc1f7b8cd82be8eed60f5438f091.tar.gz
frameworks_base-d9f1a0c3a42bcc1f7b8cd82be8eed60f5438f091.tar.bz2
Merge "Fixed wake to unlock when the device has never been unlocked" into mnc-dev
-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);
}