Skip to content
Snippets Groups Projects
Commit ed3b67ea authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

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

Fixes #1658
parent 2ca0480a
No related branches found
No related tags found
1 merge request!917Fix the "no thumbs" settings not taken into account for video groups
Pipeline #74055 passed with stage
in 3 minutes and 41 seconds
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment