removing an empty space at opening map coordinates

This commit is contained in:
tibbi 2020-04-23 21:28:46 +02:00
parent d39610f4c6
commit ec6dc7210e
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ buildscript {
propMinSdkVersion = 21
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '5.26.23'
propVersionName = '5.26.24'
kotlin_version = '1.3.72'
}

View file

@ -363,7 +363,7 @@ fun Activity.openPathIntent(path: String, forceChooser: Boolean, applicationId:
}
fun Activity.showLocationOnMap(coordinates: String) {
val uriBegin = "geo:$coordinates"
val uriBegin = "geo:${coordinates.replace(" ", "")}"
val encodedQuery = Uri.encode(coordinates)
val uriString = "$uriBegin?q=$encodedQuery&z=16"
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(uriString))