From 9aaee4e6488f0cdf7ecea34129305623b880e4dd Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 13 Aug 2018 21:37:06 +0200 Subject: [PATCH] fix #904, properly show images with hashtag in their path --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 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 122ed6e6a..8da153963 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -265,7 +265,8 @@ class PhotoFragment : ViewPagerFragment() { targetHeight = (targetHeight * 0.8).toInt() } - val pathToLoad = if (medium.path.startsWith("content://")) medium.path else "file://${medium.path}" + var pathToLoad = if (medium.path.startsWith("content://")) medium.path else "file://${medium.path}" + pathToLoad = pathToLoad.replace("#", "%23") val picasso = Picasso.get() .load(pathToLoad) .centerInside()