[Android] Fix the "no thumbs" settings not taken into account for video groups

Nicolas Pomepuy git at videolan.org
Thu Mar 4 06:30:15 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Mar  2 14:21:52 2021 +0100| [ed3b67eaa8dea9e66b292718ea1dc1159f5d7cc4] | committer: Nicolas Pomepuy

Fix the "no thumbs" settings not taken into account for video groups

Fixes #1658

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

 application/vlc-android/src/org/videolan/vlc/gui/helpers/ImageLoader.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/helpers/ImageLoader.kt b/application/vlc-android/src/org/videolan/vlc/gui/helpers/ImageLoader.kt
index 661dc8829..af1ecceb2 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/helpers/ImageLoader.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/helpers/ImageLoader.kt
@@ -70,7 +70,7 @@ fun loadImage(v: View, item: MediaLibraryItem?, imageWidth: Int = 0, tv: Boolean
         return
     }
     val isMedia = item.itemType == MediaLibraryItem.TYPE_MEDIA
-    if (isMedia && (item as MediaWrapper).type == MediaWrapper.TYPE_VIDEO && !Settings.showVideoThumbs) {
+    if (!Settings.showVideoThumbs && ((isMedia && (item as MediaWrapper).type == MediaWrapper.TYPE_VIDEO) || item.itemType == MediaLibraryItem.TYPE_VIDEO_GROUP) ) {
         updateImageView(UiTools.getDefaultVideoDrawable(v.context).bitmap, v, binding, tv = tv, card = card)
         return
     }



More information about the Android mailing list