From 5c0f7d493edb2c09274d1422be171cff3e972a80 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 18 Jun 2021 13:42:38 +0200 Subject: [PATCH] fix a glitch with loading huge png thumbnails on Android 11+ --- .../com/simplemobiletools/gallery/pro/extensions/Context.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt index 9381115d6..55f480b4f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt @@ -490,7 +490,7 @@ fun Context.loadPng(path: String, target: MySquareImageView, cropThumbnails: Boo .listener(object : RequestListener { override fun onLoadFailed(e: GlideException?, model: Any?, targetBitmap: Target?, isFirstResource: Boolean): Boolean { tryLoadingWithPicasso(path, target, cropThumbnails, roundCorners, signature) - return false + return true } override fun onResourceReady(resource: Bitmap?, model: Any?, targetBitmap: Target?, dataSource: DataSource?, isFirstResource: Boolean): Boolean {