From f3b3bee12994a24b60bd447dede9e8791151fcc9 Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Thu, 16 Apr 2015 14:57:34 -0700 Subject: Speedup unlock when authenticating with fingerprint Change-Id: Ib76ff7a2a42cf6fc77848ef799c2a13b77cfebb2 --- .../src/com/android/systemui/keyguard/KeyguardViewMediator.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'packages/SystemUI/src/com/android/systemui/keyguard') diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java index f16fb5c..b828e78 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java @@ -171,6 +171,11 @@ public class KeyguardViewMediator extends SystemUI { */ private static final String KEYGUARD_ANALYTICS_SETTING = "keyguard_analytics"; + /** + * How much faster we collapse the lockscreen when authenticating with fingerprint. + */ + private static final float FINGERPRINT_COLLAPSE_SPEEDUP_FACTOR = 1.3f; + /** The stream type that the lock sounds are tied to. */ private int mUiSoundsStreamType; @@ -441,7 +446,8 @@ public class KeyguardViewMediator extends SystemUI { if (mStatusBarKeyguardViewManager.isBouncerShowing()) { mViewMediatorCallback.keyguardDone(true); } else { - mStatusBarKeyguardViewManager.animateCollapsePanels(); + mStatusBarKeyguardViewManager.animateCollapsePanels( + FINGERPRINT_COLLAPSE_SPEEDUP_FACTOR); } }; -- cgit v1.1