[Android] Fix cover cache miss
Nicolas Pomepuy
git at videolan.org
Fri Sep 2 06:04:42 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Aug 12 08:08:05 2022 +0200| [5f03d83f4c5f532ac551067ea9977e19b11f36cd] | committer: Nicolas Pomepuy
Fix cover cache miss
> https://code.videolan.org/videolan/vlc-android/commit/5f03d83f4c5f532ac551067ea9977e19b11f36cd
---
application/vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.kt | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.kt b/application/vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.kt
index a3d4d353c..5a8b95e0b 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.kt
@@ -48,7 +48,6 @@ import org.videolan.vlc.gui.helpers.UiTools.snackerConfirm
import org.videolan.vlc.util.Permissions
import org.videolan.vlc.util.isSchemeHttpOrHttps
import java.io.*
-import java.lang.Runnable
object AudioUtil {
const val TAG = "VLC/AudioUtil"
@@ -214,7 +213,7 @@ object AudioUtil {
// Decode the file (with memory allocation this time)
cover = BitmapFactory.decodeFile(path, options)
- BitmapCache.addBitmapToMemCache(path, cover)
+ BitmapCache.addBitmapToMemCache(path.removeFileScheme() + "_$width", cover)
}
return cover
}
More information about the Android
mailing list