diff options
| author | 2023-04-13 16:02:55 -0500 | |
|---|---|---|
| committer | 2023-04-14 20:24:25 -0500 | |
| commit | 4f6344bab4311d559050911167542c9b1a26718b (patch) | |
| tree | c4ba7695cff2db0a18fd643fafbf4ed5e705b0ad /libs/androidfw/ObbFile.cpp | |
| parent | cf2fc89dcd093a039fc2365316c50ba6f457620c (diff) | |
Do not retain album art in NotificationMediaManager if unused
Album artwork is only needed here for lockscreen wallpaper, which is no longer
used by default.
- Update CentralSurfces SHOW_LOCKSCREEN_MEDIA_ARTWORK to be accurate
- If device does not use media lockscreen artwork: instead of saving the
metadata as is, save a copy without artwork info, so we don't retain
potentially large bitmaps in memory.
Bug: 278115559
Test: compare hprof - NotificationMediaManager memory reduced significantly
Test: atest NotificationMediaManagerTest
Test: manual - normal usage of media player unchanged
Change-Id: I2e203f581ad594a60bc3eec6f0782215c55b2ea5
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions