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

Commit 8beee032 authored by András Kurucz's avatar András Kurucz
Browse files

[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
parent ac20d055
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