Reorder functions.
This commit is contained in:
parent
f18a107df8
commit
5f74442f57
@ -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() {
|
private fun destroyMe() {
|
||||||
locationTracker.removeCallback(this)
|
locationTracker.removeCallback(this)
|
||||||
stopSelf()
|
stopSelf()
|
||||||
@ -108,13 +117,4 @@ class LocationSharingService : VectorService(), LocationTracker.Callback {
|
|||||||
companion object {
|
companion object {
|
||||||
const val EXTRA_ROOM_ARGS = "EXTRA_ROOM_ARGS"
|
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()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user