summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Beth Thibodeau <ethibodeau@google.com> 2022-07-19 21:29:29 -0500
committer Beth Thibodeau <ethibodeau@google.com> 2022-07-20 18:00:26 +0000
commitd0c1f811af2b0d3c035644494676acebae1cff05 (patch)
treec5ff58e2fa17f09eb4daa2b1744dae5e6e328e65 /libs/androidfw/ResourceTimer.cpp
parente15951e5f2c37bdf81088fcf299194447d7eddef (diff)
Fix crash when loading album art by resource
When the album art is loaded from the notification largeIcon it may be a resource rather than a bitmap, so it has to be loaded as a drawable. Bitmaps are still loaded using `WallpaperColors.fromBitmap` to avoid the extra steps needed by the `fromDrawable` method. Fixes: 239368697 Test: manual Test: atest MediaControlPanelTest Change-Id: I0ba9a4b0f4d308cc360a785b68cbabdcb2480690 (cherry picked from commit ef53f601f2b46dfaaef27d7fecb1712178e5c6ea)
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions