Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Dil3mm4/ba29199fe95fd1c8d521c2f7b4a0ebaa to your computer and use it in GitHub Desktop.
Save Dil3mm4/ba29199fe95fd1c8d521c2f7b4a0ebaa to your computer and use it in GitHub Desktop.
From 259776bd0218af032d5b2116af0069e105233e24 Mon Sep 17 00:00:00 2001
From: Dil3mm4 <dil3mm4.dev@gmail.com>
Date: Fri, 4 Dec 2020 18:42:54 +0000
Subject: [PATCH] SystemUI: ensure keyguardstatusbar 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