Catch Geocoder exceptions on Android 13 (#3021)

- Switch from Error to Exception on errors which will be caught
This commit is contained in:
Joris Pelgröm 2022-11-03 17:28:02 +01:00 committed by GitHub
parent 1b1c2bb672
commit 0e3d50960f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,7 +158,7 @@ class GeocodeSensorManager : SensorManager {
}
override fun onError(errorMessage: String?) {
cont.resumeWithException(Error(errorMessage))
cont.resumeWithException(Exception(errorMessage))
}
}
)