Fix thumbnail

This commit is contained in:
tom5079
2022-01-17 00:45:20 +09:00
parent b66f376729
commit 8be64745fc
2 changed files with 2 additions and 5 deletions

View File

@@ -12,7 +12,7 @@
"filters": [],
"attributes": [],
"versionCode": 69,
"versionName": "5.2.14-PREVIEW01",
"versionName": "5.2.14",
"outputFile": "app-release.apk"
}
],

View File

@@ -128,10 +128,7 @@ class GalleryBlockAdapter(private val galleries: List<Int>) : RecyclerSwipeAdapt
setFailureImage(ContextCompat.getDrawable(context, R.drawable.image_broken_variant))
setImageLoaderCallback(object: ImageLoader.Callback {
override fun onFail(error: Exception?) {
Cache.getInstance(context, galleryID).let { cache ->
cache.cacheFolder.getChild(".thumbnail").let { if (it.exists()) it.delete() }
cache.downloadFolder?.getChild(".thumbnail")?.let { if (it.exists()) it.delete() }
}
Cache.delete(context, galleryID)
}
override fun onCacheHit(imageType: Int, image: File?) {}