Skip to content
Snippets Groups Projects
Commit a4121c3c authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Geoffrey Métais
Browse files

Crash fix

(cherry picked from commit a21a0889)
parent 8541369b
No related branches found
No related tags found
No related merge requests found
......@@ -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