Skip to content
Snippets Groups Projects
Commit a21a0889 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Crash fix

parent 2c4ff0e6
No related branches found
No related tags found
1 merge request!208Fixes
......@@ -42,7 +42,7 @@ object ThumbnailsProvider {
@WorkerThread
fun getFolderThumbnail(folder: AbstractFolder, width: Int): Bitmap? {
val media = listOf(*folder.media(AbstractFolder.TYPE_FOLDER_VIDEO, AbstractMedialibrary.SORT_DEFAULT, true, 4, 0))
val media = folder.media(AbstractFolder.TYPE_FOLDER_VIDEO, AbstractMedialibrary.SORT_DEFAULT, true, 4, 0).filterNotNull()
return getComposedImage("folder:" + folder.title, media, width)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment