fix a glitch with loading huge png thumbnails on Android 11+

This commit is contained in:
tibbi 2021-06-18 13:42:38 +02:00
parent 516f20856d
commit 5c0f7d493e

View file

@ -490,7 +490,7 @@ fun Context.loadPng(path: String, target: MySquareImageView, cropThumbnails: Boo
.listener(object : RequestListener<Bitmap> {
override fun onLoadFailed(e: GlideException?, model: Any?, targetBitmap: Target<Bitmap>?, isFirstResource: Boolean): Boolean {
tryLoadingWithPicasso(path, target, cropThumbnails, roundCorners, signature)
return false
return true
}
override fun onResourceReady(resource: Bitmap?, model: Any?, targetBitmap: Target<Bitmap>?, dataSource: DataSource?, isFirstResource: Boolean): Boolean {