Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 11c5b789 authored by Chandru S's avatar Chandru S
Browse files

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
parent 2350f6b2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment