This commit is contained in:
tom5079
2019-11-30 16:10:09 +09:00
parent e497d47374
commit 74033b9f4a
2 changed files with 14 additions and 6 deletions

View File

@@ -576,6 +576,17 @@ class MainActivity : AppCompatActivity() {
}
}
histories.remove(galleryID)
if (this@MainActivity.mode == Mode.HISTORY) {
runOnUiThread {
cancelFetch()
clearGalleries()
fetchGalleries(query, sortMode)
loadBlocks()
}
}
completeFlag.put(galleryID, false)
}
@@ -1165,7 +1176,7 @@ class MainActivity : AppCompatActivity() {
}
} ?: return@async null
val thumbnail = async {
val thumbnail = async(Dispatchers.IO) {
val ext = galleryBlock.thumbnails[0].split('.').last()
File(getCachedGallery(this@MainActivity, galleryBlock.id), "thumbnail.$ext").apply {
if (!exists())