summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2021-12-08 15:30:53 -0800
committer Mady Mellor <madym@google.com> 2021-12-09 13:36:32 -0800
commitfecc19944017f07fb6e12dd328f3da3473a2d876 (patch)
treebc11747f9b96ca4e4932cec5c841267e9438e4f5 /libs/androidfw/StringPool.cpp
parenteeb998c0937884db93dda5ec9df1550501f3c837 (diff)
Mark bubbles as updated when they're added to the stack
If you add a bubble via the button on the notification but if the notif for it is older than the notifs for the bubbles in the stack, then that added bubble is removed immediately. This isn't expected and can result in the view state being out of sync with bubble data, i.e. BubbleStackView contains the view but BubbleData doesn't have the bubble so it can get added again (but the view is already in BSV causing the crash). This fixes the issue by marking newly added bubbles as "updated" which will ensure the newly added bubble won't be immediately removed. Had to adjust the tests to be setting a current time since that's what's used to mark the update time. Test: atest BubbleDataTest Bug: 207083906 Change-Id: I425de9c1ca514066340f9123b6004820e98674fd
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions