fix #904, properly show images with hashtag in their path
This commit is contained in:
parent
51472efb89
commit
9aaee4e648
1 changed files with 2 additions and 1 deletions
|
@ -265,7 +265,8 @@ class PhotoFragment : ViewPagerFragment() {
|
||||||
targetHeight = (targetHeight * 0.8).toInt()
|
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()
|
val picasso = Picasso.get()
|
||||||
.load(pathToLoad)
|
.load(pathToLoad)
|
||||||
.centerInside()
|
.centerInside()
|
||||||
|
|
Loading…
Reference in a new issue