Skip to content

Commit

Permalink
Fix a crash when opening the music miniplayer
Browse files Browse the repository at this point in the history
Caused by removing the icon pack it used, in 4751fc1
  • Loading branch information
hufman committed Aug 21, 2024
1 parent 47cdbd4 commit 8f81ad8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class MusicActivityIconsModel(private val _icons: Map<String, Bitmap>): ViewMode

private fun loadIcons(context: Context): Map<String, Bitmap> {
val appAssets = CarAppAssetResources(context, "multimedia")
val images = Utils.loadZipfile(appAssets.getImagesDB("common"))
val images = Utils.loadZipfile(appAssets.getImagesDB("bmw"))
val icons = HashMap<String, Bitmap>()
for (id in listOf(ARTIST_ID, ALBUM_ID, SONG_ID, PLACEHOLDER_ID, FOLDER_ID)) {
icons[id] = BitmapFactory.decodeByteArray(images[id], 0, images[id]?.size ?: 0)
Expand Down

0 comments on commit 8f81ad8

Please sign in to comment.