Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Dil3mm4/6406b4c363a8f67bd1428f8c1e8f7378 to your computer and use it in GitHub Desktop.
Save Dil3mm4/6406b4c363a8f67bd1428f8c1e8f7378 to your computer and use it in GitHub Desktop.
From 743d939ee44423503c135887d3fd221122ec10e7 Mon Sep 17 00:00:00 2001
From: Dil3mm4 <[email protected]>
Date: Fri, 4 Dec 2020 18:42:54 +0000
Subject: [PATCH] SystemUI: ensure keyguardstatusview is hidden if not on
keyguard
There seem to be some un-identified weird cases where the various runnable aren't execute by keyguard dismissal, therefore let's be sure mKeyguardStatusBar status is correct on view reinflation.
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java
index 48aeb0fd93d6..4300556e1325 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java
@@ -777,7 +777,7 @@ public class NotificationPanelViewController extends PanelViewController {
/*if (mKeyguardStatusBar != null) {
mKeyguardStatusBar.onThemeChanged();
}*/
-
+ mKeyguardStatusBar.setVisibility(mKeyguardShowing ? View.VISIBLE : View.INVISIBLE);
setKeyguardStatusViewVisibility(mBarState, false, false);
setKeyguardBottomAreaVisibility(mBarState, false);
if (mOnReinflationListener != null) {
--
2.20.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment