Reorder functions.

This commit is contained in:
Onuray Sahin 2022-03-23 16:34:45 +03:00
parent f18a107df8
commit 5f74442f57

View file

@ -90,6 +90,15 @@ class LocationSharingService : VectorService(), LocationTracker.Callback {
}
}
override fun onLocationUpdate(locationData: LocationData) {
Timber.i("### LocationSharingService.onLocationUpdate. Uncertainty: ${locationData.uncertainty}")
}
override fun onLocationProviderIsNotAvailable() {
stopForeground(true)
stopSelf()
}
private fun destroyMe() {
locationTracker.removeCallback(this)
stopSelf()
@ -108,13 +117,4 @@ class LocationSharingService : VectorService(), LocationTracker.Callback {
companion object {
const val EXTRA_ROOM_ARGS = "EXTRA_ROOM_ARGS"
}
override fun onLocationUpdate(locationData: LocationData) {
Timber.i("### LocationSharingService.onLocationUpdate. Uncertainty: ${locationData.uncertainty}")
}
override fun onLocationProviderIsNotAvailable() {
stopForeground(true)
stopSelf()
}
}