From 8c509ac5256936921b9c258bbfeeaea78ef01afb Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 10 Nov 2019 10:48:43 +0100 Subject: [PATCH] fix #1544, allow picking videos as folder covers --- .../simplemobiletools/gallery/pro/dialogs/PickMediumDialog.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickMediumDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickMediumDialog.kt index 23264db5d..99509354b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickMediumDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/dialogs/PickMediumDialog.kt @@ -40,7 +40,7 @@ class PickMediumDialog(val activity: BaseSimpleActivity, val path: String, val c } activity.getCachedMedia(path) { - val media = it.filter { it is Medium && !it.isVideo() } as ArrayList + val media = it.filter { it is Medium } as ArrayList if (media.isNotEmpty()) { activity.runOnUiThread { gotMedia(media) @@ -48,7 +48,7 @@ class PickMediumDialog(val activity: BaseSimpleActivity, val path: String, val c } } - GetMediaAsynctask(activity, path, true, false, false) { + GetMediaAsynctask(activity, path, false, false, false) { gotMedia(it) }.execute() }