fix #1544, allow picking videos as folder covers

This commit is contained in:
tibbi 2019-11-10 10:48:43 +01:00
parent 59be8838c4
commit 8c509ac525

View file

@ -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()
}