summaryrefslogtreecommitdiff
path: root/native/android/input.cpp
diff options
context:
space:
mode:
author Alexander Roederer <aroederer@google.com> 2024-08-20 14:45:19 +0000
committer Alexander Roederer <aroederer@google.com> 2024-08-27 20:11:25 +0000
commit2fb8abd433ff5f8171decd97fc525f98f84bc9c1 (patch)
treef8903878f082203ffb5acc3d48c23bc481b85efc /native/android/input.cpp
parent028cedc35202d3b80b8bf7a0414c14a220149679 (diff)
Lifetime extension to not update on multicancel
Adds a new field to NotificationRecord that records when a lifetime extended notification has been cancelled by an app. Then, when an app sends a cancellation, we check that field before we update system UI. This allows us to avoid sending multiple updates to system ui when an app cancels repeatedly. These multiple cancelations were causing rendering issues. As a side effect, we can also remove the ONLY_ALERT_ONCE flag we added, because we'll no longer cause multiple huns to appear because of sending multiple updates. Bug: 299448097 Flag: android.app.lifetime_extension_refactor Test: flash, atest NotificationManagerServiceTest Change-Id: Idc8e16d7aef321eaa76c64214febb79af4690463
Diffstat (limited to 'native/android/input.cpp')
0 files changed, 0 insertions, 0 deletions