Last active
October 14, 2020 04:48
-
-
Save anayw2001/617f550455eda82aaba5a552b3740eda to your computer and use it in GitHub Desktop.
Patch for fixing QS expansion when expanded on keyguard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From c7f9647e0c8216b91cc655649eb8f1970aa73192 Mon Sep 17 00:00:00 2001 | |
From: Dil3mm4 <[email protected]> | |
Date: Tue, 13 Oct 2020 09:29:19 +0000 | |
Subject: [PATCH] StatusBar: dismiss qs when screen's going off if showing | |
test: expand to full QS state, lock device, unlock device, ensure QS isn't expanded anymore | |
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 a5cc1a83fc8..e96b3164c5f 100644 | |
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java | |
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java | |
@@ -3817,6 +3817,9 @@ public class StatusBar extends SystemUI implements DemoMode, | |
public void onScreenTurnedOff() { | |
mFalsingManager.onScreenOff(); | |
mScrimController.onScreenTurnedOff(); | |
+ if (mNotificationPanelViewController.isQsExpanded()) { | |
+ mNotificationPanelViewController.closeQs(); | |
+ } | |
updateIsKeyguard(); | |
} | |
}; | |
@@ -4373,4 +4376,4 @@ public class StatusBar extends SystemUI implements DemoMode, | |
public void suppressAmbientDisplay(boolean suppressed) { | |
mDozeServiceHost.setDozeSuppressed(suppressed); | |
} | |
-} | |
+} | |
\ No newline at end of file | |
-- | |
2.20.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment