From 8f81ad8f9fe9761c826600c9222ee217aebd08ce Mon Sep 17 00:00:00 2001 From: Walter Huf Date: Wed, 21 Aug 2024 08:34:37 -0700 Subject: [PATCH] Fix a crash when opening the music miniplayer Caused by removing the icon pack it used, in 4751fc1 --- .../phoneui/viewmodels/MusicActivityIconsModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/me/hufman/androidautoidrive/phoneui/viewmodels/MusicActivityIconsModel.kt b/app/src/main/java/me/hufman/androidautoidrive/phoneui/viewmodels/MusicActivityIconsModel.kt index 52f2055ff..9e7af1a5d 100644 --- a/app/src/main/java/me/hufman/androidautoidrive/phoneui/viewmodels/MusicActivityIconsModel.kt +++ b/app/src/main/java/me/hufman/androidautoidrive/phoneui/viewmodels/MusicActivityIconsModel.kt @@ -18,7 +18,7 @@ class MusicActivityIconsModel(private val _icons: Map): ViewMode private fun loadIcons(context: Context): Map { val appAssets = CarAppAssetResources(context, "multimedia") - val images = Utils.loadZipfile(appAssets.getImagesDB("common")) + val images = Utils.loadZipfile(appAssets.getImagesDB("bmw")) val icons = HashMap() 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)