DivestOS/Patches/LineageOS-19.1/android_frameworks_base/326692.patch

30 lines
1.5 KiB
Diff
Raw Normal View History

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jesse Chan <jc@lineageos.org>
Date: Sat, 15 Aug 2020 21:38:06 +0800
Subject: [PATCH] Skip screen on animation when wake and unlock via biometrics
Screen on animation is slow. Modern fingerprint sensor is *FAST*.
We need moar speed to deliver better user experience.
* OEMs are doing this for years.
Change-Id: I5f98259eb992b2f43872f957fcb0092412fe558c
---
.../src/com/android/systemui/statusbar/phone/StatusBar.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
index 6552e1e9c522..7141e2801f10 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
@@ -3933,7 +3933,8 @@ public class StatusBar extends SystemUI implements
boolean launchingAffordanceWithPreview =
mNotificationPanelViewController.isLaunchingAffordanceWithPreview();
- mScrimController.setLaunchingAffordanceWithPreview(launchingAffordanceWithPreview);
+ mScrimController.setLaunchingAffordanceWithPreview(launchingAffordanceWithPreview
+ || mBiometricUnlockController.isWakeAndUnlock());
if (mStatusBarKeyguardViewManager.isShowingAlternateAuth()) {
if (mState == StatusBarState.SHADE || mState == StatusBarState.SHADE_LOCKED) {