[Android] Fix album view thumbnail size
Nicolas Pomepuy
git at videolan.org
Tue Dec 10 07:55:22 CET 2019
vlc-android | branch: 3.2.x | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Fri Dec 6 07:02:22 2019 +0000| [82ce982fa9f43bdefb0471cc0e44bf66b34aaeb9] | committer: Nicolas Pomepuy
Fix album view thumbnail size
Fixes #828
(cherry picked from commit 9b93cca380f9e5f313c9ee21213c927c9e89b371)
> https://code.videolan.org/videolan/vlc-android/commit/82ce982fa9f43bdefb0471cc0e44bf66b34aaeb9
---
vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt b/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt
index 5285faa00..9fe67dfcf 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt
@@ -134,7 +134,7 @@ open class PlaylistActivity : AudioPlayerContainerActivity(), IEventsHandler, IL
launch {
val cover = withContext(Dispatchers.IO) {
if (!TextUtils.isEmpty(playlist.artworkMrl)) {
- AudioUtil.readCoverBitmap(Uri.decode(playlist.artworkMrl), resources.getDimensionPixelSize(R.dimen.audio_browser_item_size))
+ AudioUtil.readCoverBitmap(Uri.decode(playlist.artworkMrl), getScreenWidth())
} else {
ThumbnailsProvider.getPlaylistImage("playlist:${playlist.id}", playlist.tracks.toList(), getScreenWidth())
}
More information about the Android
mailing list