[Android] TV: Adjust cover/thumb sizes

Geoffrey Métais git at videolan.org
Tue Jan 10 13:48:26 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 10 13:13:10 2017 +0100| [176cdf685007a1c18a7bcdd28bcad6cd41ef3b4b] | committer: Geoffrey Métais

TV: Adjust cover/thumb sizes

> https://code.videolan.org/videolan/vlc-android/commit/176cdf685007a1c18a7bcdd28bcad6cd41ef3b4b
---

 vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java            | 2 +-
 vlc-android/src/org/videolan/vlc/gui/tv/MediaItemDetailsFragment.java | 2 +-
 vlc-android/src/org/videolan/vlc/media/BrowserProvider.java           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java b/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
index a8560ec..087ea8b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
@@ -261,7 +261,7 @@ public class CardPresenter extends Presenter {
                         break;
                 }
             } else
-                picture = AudioUtil.readCoverBitmap(Strings.removeFileProtocole(Uri.decode(mediaLibraryItem.getArtworkMrl())), 384);
+                picture = AudioUtil.readCoverBitmap(Strings.removeFileProtocole(Uri.decode(mediaLibraryItem.getArtworkMrl())), res.getDimensionPixelSize(R.dimen.tv_grid_card_thumb_width));
             if (picture == null) {
                 int resId;
                 switch (mediaLibraryItem.getItemType()) {
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/MediaItemDetailsFragment.java b/vlc-android/src/org/videolan/vlc/gui/tv/MediaItemDetailsFragment.java
index ae2ce26..603f670 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/MediaItemDetailsFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/MediaItemDetailsFragment.java
@@ -175,7 +175,7 @@ public class MediaItemDetailsFragment extends DetailsFragment implements Playbac
 
         } else if (media.getType() == MediaWrapper.TYPE_AUDIO) {
             // Add images and action buttons to the details view
-            Bitmap cover = AudioUtil.readCoverBitmap(mMedia.getArtworkUrl(), 480);
+            Bitmap cover = AudioUtil.readCoverBitmap(mMedia.getArtworkUrl(), 512);
             if (cover == null)
                 detailsOverview.setImageDrawable(res.getDrawable(R.drawable.cone));
             else
diff --git a/vlc-android/src/org/videolan/vlc/media/BrowserProvider.java b/vlc-android/src/org/videolan/vlc/media/BrowserProvider.java
index f7dfaa8..7d46896 100644
--- a/vlc-android/src/org/videolan/vlc/media/BrowserProvider.java
+++ b/vlc-android/src/org/videolan/vlc/media/BrowserProvider.java
@@ -137,7 +137,7 @@ public class BrowserProvider {
             for (MediaLibraryItem libraryItem : list) {
                 if (libraryItem.getItemType() == MediaLibraryItem.TYPE_MEDIA && ((MediaWrapper)libraryItem).getType() != MediaWrapper.TYPE_AUDIO)
                     continue;
-                Bitmap cover = AudioUtil.readCoverBitmap(Strings.removeFileProtocole(Uri.decode(libraryItem.getArtworkMrl())), 128);
+                Bitmap cover = AudioUtil.readCoverBitmap(Strings.removeFileProtocole(Uri.decode(libraryItem.getArtworkMrl())), 256);
                 if (cover == null)
                     cover = DEFAULT_AUDIO_COVER;
                 item.setTitle(libraryItem.getTitle())



More information about the Android mailing list