Describe the issue
Sharing location to Organic Maps leads to crash
Steps to reproduce
fun openLocation(exif....) {
val latLon = FloatArray(2)
if (exif.getLatLong(latLon)) {
showLocationOnMap("${latLon[0]}, ${latLon[1]}")
} else {
toast(R.string.unknown_location)
}
}
fun Activity.showLocationOnMap(coordinates: String) {
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))
launchActivityIntent(intent)
}
Expected behaviour
No crash.
Screenshots
If applicable, add screenshots or screen recordings to help explain your problem.
System information:
Additional context
Please add any other context or comments here that may be useful.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too