[Android] Remove checksum from playlist key
Robert Stone
git at videolan.org
Tue May 18 07:28:34 UTC 2021
vlc-android | branch: master | Robert Stone <rhstone at gmail.com> | Thu May 13 23:10:40 2021 -0700| [5c44b6422f3c1e06d4bfe7f6c6828ee8add41549] | committer: Robert Stone
Remove checksum from playlist key
> https://code.videolan.org/videolan/vlc-android/commit/5c44b6422f3c1e06d4bfe7f6c6828ee8add41549
---
application/vlc-android/src/org/videolan/vlc/ArtworkProvider.kt | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/ArtworkProvider.kt b/application/vlc-android/src/org/videolan/vlc/ArtworkProvider.kt
index 4d5aff205..2b3891241 100644
--- a/application/vlc-android/src/org/videolan/vlc/ArtworkProvider.kt
+++ b/application/vlc-android/src/org/videolan/vlc/ArtworkProvider.kt
@@ -246,8 +246,7 @@ class ArtworkProvider : ContentProvider() {
iconAddition = ctx.getBitmapFromDrawable(R.drawable.ic_auto_playall_circle)
}
tracks?.let {
- val playlistChecksum = computeChecksum(tracks, true)
- cover = ThumbnailsProvider.getPlaylistImage("$type:${libraryItem.id}_${playlistChecksum}", tracks, 256, iconAddition)
+ cover = ThumbnailsProvider.getPlaylistImage("$type:${libraryItem.id}_256", tracks, 256, iconAddition)
}
}
}
@@ -310,8 +309,7 @@ class ArtworkProvider : ContentProvider() {
HISTORY -> getBitmapFromDrawable(context, R.drawable.ic_auto_history_circle)
else -> null
}
- val checksum = computeChecksum(tracks)
- cover = ThumbnailsProvider.getPlaylistImage("${key}_${checksum}", tracks, 256, iconAddition)
+ cover = ThumbnailsProvider.getPlaylistImage("${key}_256", tracks, 256, iconAddition)
}
}
return encodeImage(cover ?: context.getBitmapFromDrawable(R.drawable.ic_auto_playall))
More information about the Android
mailing list