summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Pradeep Sawlani <sawlani@google.com> 2025-03-13 22:05:40 -0700
committer Pradeep Sawlani <sawlani@google.com> 2025-03-14 12:11:45 -0700
commit32c0da4332390b8f1dfdb1ac936afa40f87d0325 (patch)
tree982809e82042bd0d774e192cd104e9979cae8f19 /libs/androidfw/FileStream.cpp
parent5edd4c32e95c5ee8cdba37349bf4a289f3539203 (diff)
Fix duplicate bitmaps.
onNotificationPosted callback can be called multiple times from the app to update the notification in system UI before onNotificationRemoved() is called. Prior code assumed, notification objet would not change and as Set does not allow duplicates it will ignore the update. Changes in this commit fixes the above assumption and while we are at it, does shallow copy so there are no addtional references to Bitmap. Verified the changes with media playback and checking system_server memory. Test: atest cts/tests/app/src/android/app/cts/ActivityManagerNotifyMediaFGSTypeTest.java Flag: com.android.media.flags.enable_notifying_activity_manager_with_media_session_status_change BUG: 403303336 Change-Id: I3d5d4f6d976731da55ff125e19f22020ec987af6 Signed-off-by: Pradeep Sawlani <sawlani@google.com>
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions