mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
fix #1544, allow picking videos as folder covers
This commit is contained in:
@ -40,7 +40,7 @@ class PickMediumDialog(val activity: BaseSimpleActivity, val path: String, val c
|
|||||||
}
|
}
|
||||||
|
|
||||||
activity.getCachedMedia(path) {
|
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()) {
|
if (media.isNotEmpty()) {
|
||||||
activity.runOnUiThread {
|
activity.runOnUiThread {
|
||||||
gotMedia(media)
|
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)
|
gotMedia(it)
|
||||||
}.execute()
|
}.execute()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user