fix #1544, allow picking videos as folder covers
This commit is contained in:
parent
59be8838c4
commit
8c509ac525
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue