mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-30 19:04:54 +01:00
Rebind location service when the previous sharing is stopped.
This commit is contained in:
parent
7999bd7523
commit
fbbadc8138
@ -1229,6 +1229,8 @@ class TimelineViewModel @AssistedInject constructor(
|
|||||||
|
|
||||||
override fun onLocationServiceStopped() {
|
override fun onLocationServiceStopped() {
|
||||||
_viewEvents.post(RoomDetailViewEvents.HideLocationSharingIndicator)
|
_viewEvents.post(RoomDetailViewEvents.HideLocationSharingIndicator)
|
||||||
|
// Bind again in case user decides to share live location without leaving the room
|
||||||
|
locationSharingServiceConnection.bind(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCleared() {
|
override fun onCleared() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user