mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-07 12:59:55 +01:00
prevent crash on async callback
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
03e0bd57bb
commit
005dfa9397
@ -277,6 +277,7 @@ class LocationPickerController(args: Bundle) :
|
|||||||
DelayedMapListener(
|
DelayedMapListener(
|
||||||
object : MapListener {
|
object : MapListener {
|
||||||
override fun onScroll(paramScrollEvent: ScrollEvent): Boolean {
|
override fun onScroll(paramScrollEvent: ScrollEvent): Boolean {
|
||||||
|
try {
|
||||||
when {
|
when {
|
||||||
moveToCurrentLocationWasClicked -> {
|
moveToCurrentLocationWasClicked -> {
|
||||||
setLocationDescription(isGpsLocation = true, isGeocodedResult = false)
|
setLocationDescription(isGpsLocation = true, isGeocodedResult = false)
|
||||||
@ -292,6 +293,10 @@ class LocationPickerController(args: Bundle) :
|
|||||||
setLocationDescription(isGpsLocation = false, isGeocodedResult = false)
|
setLocationDescription(isGpsLocation = false, isGeocodedResult = false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (e: NullPointerException) {
|
||||||
|
Log.d(TAG, "UI already closed")
|
||||||
|
}
|
||||||
|
|
||||||
readyToShareLocation = true
|
readyToShareLocation = true
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user