diff options
| author | Steve Elliott <steell@google.com> | 2021-10-21 17:19:34 -0400 |
|---|---|---|
| committer | Steve Elliott <steell@google.com> | 2021-10-29 15:40:14 -0400 |
| commit | 6a9124a0a54adede492466adbc8a2da5146c4fd8 (patch) | |
| tree | ab32b71b02dc09e0bc5e16bbf7ed490a2df7b442 /core/java/android/inputmethodservice/AbstractInputMethodService.java | |
| parent | e093dca31fcc4febf0686151fac889a4c94d2059 (diff) | |
Add sensitive content redaction to notif pipeline
This incorporates two behaviors originally handled by the
NotificationViewHierarchyManager:
1. A change in DynamicPrivacy would trigger
NotificationViewHierarchyManager#updateNotificationViews
2. The aformentioned #updateNotificationViews method was responsible
for setting the redaction state on each NotificationEntry
A new Coordinator is introduced to the NotifPipeline to handle both of
these behaviors. (1) is handled by attaching a new Invalidator that
will request a notif list rebuild when dynamic privacy changes. (2) is
handled by processing each ListEntry in an OnPreRenderListListener,
and setting the redaction state on each NotificationEntry.
Test: manual - turn on setting to hide sensitive notification content
on the lockscreen, lock phone, turn screen back on,
observe notifications on lock screen
Fixes: 200025730
Change-Id: I57b4d68f440ea50f13f6da4676144400f875ea8c
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions
