[Android] TV: Always load media covers

Geoffrey Métais git at videolan.org
Wed Apr 4 18:36:19 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Apr  3 18:44:45 2018 +0200| [d3e8428cd86bd2aecab8dc4bc712faeefb4b2214] | committer: Geoffrey Métais

TV: Always load media covers

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

 vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 67cd081b1..bed6f79c1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
@@ -80,7 +80,7 @@ public class CardPresenter extends Presenter {
         }
 
         void updateCardViewImage(MediaLibraryItem item) {
-            if (TextUtils.isEmpty(item.getArtworkMrl()) && !(item.getItemType() == MediaLibraryItem.TYPE_MEDIA && ((MediaWrapper)item).getType() == MediaWrapper.TYPE_GROUP)) {
+            if (TextUtils.isEmpty(item.getArtworkMrl()) && item.getItemType() != MediaLibraryItem.TYPE_MEDIA) {
                 mCardView.getMainImageView().setScaleType(ImageView.ScaleType.FIT_CENTER);
                 mCardView.setMainImage(new BitmapDrawable(mCardView.getResources(), getDefaultImage(item)));
             } else AsyncImageLoader.loadPicture(mCardView, item);



More information about the Android mailing list