[Android] Fix album view thumbnail size
Nicolas Pomepuy
git at videolan.org
Fri Dec 6 12:29:57 CET 2019
vlc-android | branch: 3.2.x | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Fri Dec 6 07:02:22 2019 +0000| [28a38071a5325a22d3aa06825bc70aa20c20290d] | committer: Geoffrey Métais
Fix album view thumbnail size
Fixes #828
(cherry picked from commit 9b93cca380f9e5f313c9ee21213c927c9e89b371)
> https://code.videolan.org/videolan/vlc-android/commit/28a38071a5325a22d3aa06825bc70aa20c20290d
---
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 5285faa00..4224cb206 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
@@ -134,7 +132,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