This commit is contained in:
tom5079
2019-11-30 16:10:47 +09:00
parent 74033b9f4a
commit 8d16950f46

View File

@@ -1176,7 +1176,7 @@ class MainActivity : AppCompatActivity() {
} }
} ?: return@async null } ?: return@async null
val thumbnail = async(Dispatchers.IO) { val thumbnail = async {
val ext = galleryBlock.thumbnails[0].split('.').last() val ext = galleryBlock.thumbnails[0].split('.').last()
File(getCachedGallery(this@MainActivity, galleryBlock.id), "thumbnail.$ext").apply { File(getCachedGallery(this@MainActivity, galleryBlock.id), "thumbnail.$ext").apply {
if (!exists()) if (!exists())