fix #1897, properly load zoomable images in some cases

This commit is contained in:
tibbi 2020-11-02 12:17:06 +01:00
parent e31cdf1381
commit 4106df2b6c

View file

@ -20,7 +20,7 @@ class MyGlideImageDecoder(val degrees: Int, val signature: ObjectKey) : ImageDec
val builder = Glide.with(context) val builder = Glide.with(context)
.asBitmap() .asBitmap()
.load(uri) .load(uri.toString().substringAfter("file://"))
.apply(options) .apply(options)
.transform(RotateTransformation(-degrees)) .transform(RotateTransformation(-degrees))
.into(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL) .into(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL)