Stop relying on the local cache in KeyguardUpdateMonitor to determine whether...
Stop relying on the local cache in KeyguardUpdateMonitor to determine whether user storage is locked. SystemUI expects a broadcast with ACTION_USER_UNLOCKED intent action to update the state in the local cache. From the recent bug reports it seems like SystemUI never receives the broadcast or misses it or something else is causing the cache to remain stale. This CL changes the method to use UserManager#isUserUnlocked directly instead of relying on the cache. `UserManager` has an IPC data cache that would avoid repeated IPCs, making this change behind a flag to identify any performance regressions. Flag: com.android.systemui.user_encrypted_source Bug: 333656491 Test: verified manually, reboot device, see the `Unlock for all features and data` message on lock screen. Change-Id: If15b8603aad4ec01fbcbdc3df105451d9e5802b4
Loading
Please register or sign in to comment