[Android] Fix thumbnails shown for folders in the video list
Nicolas Pomepuy
git at videolan.org
Thu Oct 13 15:28:27 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Oct 13 13:48:05 2022 +0200| [f01152cc426128d522ffb9cef66bc3dcb019f9b1] | committer: Duncan McNamara
Fix thumbnails shown for folders in the video list
Fixes #2719
> https://code.videolan.org/videolan/vlc-android/commit/f01152cc426128d522ffb9cef66bc3dcb019f9b1
---
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 1e30a2ba7..45ddb10c7 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
@@ -71,7 +71,7 @@ fun loadImage(v: View, item: MediaLibraryItem?, imageWidth: Int = 0, tv: Boolean
val binding = DataBindingUtil.findBinding<ViewDataBinding>(v)
val isMedia = item.itemType == MediaLibraryItem.TYPE_MEDIA
- if (!Settings.showVideoThumbs && ((isMedia && (item as MediaWrapper).type == MediaWrapper.TYPE_VIDEO) || item.itemType == MediaLibraryItem.TYPE_VIDEO_GROUP) ) {
+ if (!Settings.showVideoThumbs && ((isMedia && (item as MediaWrapper).type == MediaWrapper.TYPE_VIDEO) || item.itemType == MediaLibraryItem.TYPE_VIDEO_GROUP || item is Folder) ) {
updateImageView(UiTools.getDefaultVideoDrawable(v.context).bitmap, v, binding, tv = tv, card = card)
return
}
More information about the Android
mailing list