From ddb7b47dd0c875318669cc2d68f84de49710d138 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Mon, 11 Jun 2018 17:26:34 -0700 Subject: [PATCH] Keeping the lockdown state in sync with the notification list Whenever the lockdown was changed, the UI wasn't consistently updated, but only once another notification / update came in, which lead to notifications being invisisible or visible when they shouldn't have been. Change-Id: I17c1b4e0ef58d6aa05f4404e52e07a098d4fce4e Fixes: 78020486 Test: manual, hit lockdown observe notification gone, coming back when unlocked --- .../src/com/android/systemui/statusbar/phone/StatusBar.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 c70f03405db3b..b34319d7b6327 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -607,6 +607,12 @@ public class StatusBar extends SystemUI implements DemoMode, maybeEscalateHeadsUp(); } } + + @Override + public void onStrongAuthStateChanged(int userId) { + super.onStrongAuthStateChanged(userId); + mEntryManager.updateNotifications(); + } }; private NavigationBarFragment mNavigationBar;