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()