mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
Inform mapview when fragment is stopped.
This commit is contained in:
parent
c81654d769
commit
8bf39c3127
2 changed files with 11 additions and 1 deletions
|
@ -54,6 +54,11 @@ class LocationPreviewFragment @Inject constructor(
|
||||||
super.onPause()
|
super.onPause()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onStop() {
|
||||||
|
views.mapView.onStop()
|
||||||
|
super.onStop()
|
||||||
|
}
|
||||||
|
|
||||||
override fun getMenuRes() = R.menu.menu_location_preview
|
override fun getMenuRes() = R.menu.menu_location_preview
|
||||||
|
|
||||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||||
|
|
|
@ -74,9 +74,14 @@ class LocationSharingFragment @Inject constructor(
|
||||||
super.onPause()
|
super.onPause()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onStop() {
|
||||||
|
views.mapView.onStop()
|
||||||
|
super.onStop()
|
||||||
|
}
|
||||||
|
|
||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
super.onDestroy()
|
|
||||||
locationTracker.stop()
|
locationTracker.stop()
|
||||||
|
super.onDestroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun onMapReady() {
|
private fun onMapReady() {
|
||||||
|
|
Loading…
Reference in a new issue