[Flexiglass] Notify NotificationLockscreenUserManager when the device public mode changes
With Flexiglass, NotificationLockscreenUserManager determines whether the device is in public mode by querying DeviceUnlockedInteractor.isUnlocked, however it is only notified that it needs to refresh its state on StatusBarState changes. The problem is that when the device gets locked, StatusBarState flips first, and the isUnlocked state flips later. This CL pokes the NotificationLockscreenUserManager directly, whenever the isUnlocked state changes, and adds a listener to the NSSLC for isAnyProfilePublicMode() changes. Fixes: 440335509 Flag: com.android.systemui.scene_container Test: lock the device -> notifications are showing their sensitive content Test: unlock the device -> notifications reveal their private content Change-Id: I97943629afb22617b6ea0de97418ba87feb6b8ef
Loading
Please register or sign in to comment