summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author András Kurucz <kurucz@google.com> 2024-11-29 13:58:59 +0000
committer András Kurucz <kurucz@google.com> 2024-12-06 15:34:07 +0000
commitcee74782d520f3550f5f250ea655dbc43ee9ce9e (patch)
tree7782d6932d9bf8a30c96f56a87c08fc1bf186a4d /api/api.go
parentdee733bced0a47f7c78f745e43768d1cb2b43800 (diff)
[flexiglass] Refresh NSSL sensitivity, when the Lockscreen public mode changes
NSSL decides whether it should treat sensitive content differently based on the AmbientState#isHideSensitive() flag. This flag depends on whether we have any user profiles in public mode. We don't have a fix callback to the user profiles for such a change. Instead we query their public states after various events, when the user profiles might have been locked/unlocked. These triggers are StatusBarState changes, and the end of certain animations eg. ScreenLifecycle#onScreenTurnedOff(). With Flexiglass the timing for some of these callbacks have changed, and we've started triggering a code path, which updates the user profile public modes without checking whether the NSSL sensitiveness needs to be refreshed. This caused us to show the private layout of Notifications until the first user interaction on the Lockscreen. Bug: 379825109 Test: lock the device -> notificatins are showing their sensitive content Flag: com.android.systemui.scene_container Change-Id: Id6f3daf0f6cf9435f48eb5e5cf73b8a843c3e3b2
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions