summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael W <baddaemon87@gmail.com>2022-04-18 18:21:03 +0200
committeralk3pInjection <webmaster@raspii.tech>2022-05-07 00:20:58 +0800
commit967f65b33f36eb524bd129cda3a3b14c73462a9c (patch)
treee5a965f3774a6ca71876447dd7eed0e75c6ad282
parent4b86959e89736e252f1e1dc7254c765a1897b0c9 (diff)
SystemUI: Fix alarm icon
* The icon was initially shown but not again after a reboot * Reason is, that the user setup isn't completed again and therefore the variable mCurrentUserSetup will never hold true again * Fix this by calling onUserSetupChanged once manually to get a proper initial state * Similar code exists in other places in SystemUI as well: NavigationBar.java, NetworkControllerImpl.java, ... -> Looks like this one was forgotten Change-Id: I02295a70a82696e7c0c6ade93c96e661140886f0
-rwxr-xr-xpackages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java
index 40e990c2189a..44caf1fa22db 100755
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java
@@ -338,6 +338,9 @@ public class PhoneStatusBarPolicy
mRecordingController.addCallback(this);
mCommandQueue.addCallback(this);
+
+ // Get initial user setup state
+ onUserSetupChanged();
}
@Override