fix #904, properly show images with hashtag in their path

This commit is contained in:
tibbi 2018-08-13 21:37:06 +02:00
parent 51472efb89
commit 9aaee4e648

View file

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