From 4106df2b6c67a36488c6b6edebbde18820a423a7 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 2 Nov 2020 12:17:06 +0100 Subject: [PATCH] fix #1897, properly load zoomable images in some cases --- .../gallery/pro/helpers/MyGlideImageDecoder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MyGlideImageDecoder.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MyGlideImageDecoder.kt index f56fc88d0..0287a3b39 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MyGlideImageDecoder.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MyGlideImageDecoder.kt @@ -20,7 +20,7 @@ class MyGlideImageDecoder(val degrees: Int, val signature: ObjectKey) : ImageDec val builder = Glide.with(context) .asBitmap() - .load(uri) + .load(uri.toString().substringAfter("file://")) .apply(options) .transform(RotateTransformation(-degrees)) .into(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL)