encode percent sign at file paths too

This commit is contained in:
tibbi 2018-08-13 21:41:13 +02:00
parent 9aaee4e648
commit c708f183e2

View file

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