[Android] Fix album view thumbnail size

Nicolas Pomepuy git at videolan.org
Fri Dec 6 12:29:00 CET 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Fri Dec  6 08:02:22 2019 +0100| [9b93cca380f9e5f313c9ee21213c927c9e89b371] | committer: Nicolas Pomepuy

Fix album view thumbnail size

Fixes #828

> https://code.videolan.org/videolan/vlc-android/commit/9b93cca380f9e5f313c9ee21213c927c9e89b371
---

 vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt b/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt
index eb511fd13..912b5c8ff 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt
@@ -23,11 +23,9 @@
 
 package org.videolan.vlc.gui
 
-import android.annotation.TargetApi
 import android.content.Intent
 import android.graphics.drawable.BitmapDrawable
 import android.net.Uri
-import android.os.Build
 import android.os.Bundle
 import android.os.Parcelable
 import android.text.TextUtils
@@ -130,7 +128,7 @@ open class PlaylistActivity : AudioPlayerContainerActivity(), IEventsHandler<Med
         lifecycleScope.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