From c708f183e2bd4dafc401bfc995c98d1063806cbf Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 13 Aug 2018 21:41:13 +0200 Subject: [PATCH] encode percent sign at file paths too --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt index 8da153963..60f6e9471 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -266,7 +266,7 @@ class PhotoFragment : ViewPagerFragment() { } var pathToLoad = if (medium.path.startsWith("content://")) medium.path else "file://${medium.path}" - pathToLoad = pathToLoad.replace("#", "%23") + pathToLoad = pathToLoad.replace("%", "%25").replace("#", "%23") val picasso = Picasso.get() .load(pathToLoad) .centerInside()