mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
fix displaying fullscreen images containing percentage sign or hashtag
This commit is contained in:
parent
f95da6b83a
commit
fe69c09915
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@ class PicassoRegionDecoder : ImageRegionDecoder {
|
|||
private val decoderLock = Any()
|
||||
|
||||
override fun init(context: Context, uri: Uri): Point {
|
||||
val inputStream = context.contentResolver.openInputStream(uri)
|
||||
val newUri = Uri.parse(uri.toString().replace("%", "%25").replace("#", "%23"))
|
||||
val inputStream = context.contentResolver.openInputStream(newUri)
|
||||
decoder = BitmapRegionDecoder.newInstance(inputStream, false)
|
||||
return Point(decoder!!.width, decoder!!.height)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue