mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-03-01 10:07:43 +01:00
fix #1544, allow picking videos as folder covers
This commit is contained in:
parent
59be8838c4
commit
8c509ac525
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user