diff options
author | Jorim Jaggi <jjaggi@google.com> | 2015-04-16 14:57:34 -0700 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2015-04-17 13:26:39 -0700 |
commit | f3b3bee12994a24b60bd447dede9e8791151fcc9 (patch) | |
tree | 455fc056c10545bc735e7677b0e05799d0f3f9c4 /packages/SystemUI/src/com/android/systemui/keyguard | |
parent | 1dfab471ed50478b4f63552778c949a2f0d37521 (diff) | |
download | frameworks_base-f3b3bee12994a24b60bd447dede9e8791151fcc9.zip frameworks_base-f3b3bee12994a24b60bd447dede9e8791151fcc9.tar.gz frameworks_base-f3b3bee12994a24b60bd447dede9e8791151fcc9.tar.bz2 |
Speedup unlock when authenticating with fingerprint
Change-Id: Ib76ff7a2a42cf6fc77848ef799c2a13b77cfebb2
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/keyguard')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java | 8 |
1 files changed, 7 insertions, 1 deletions
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); } }; |