mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Inform mapview when fragment is stopped.
This commit is contained in:
parent
c81654d769
commit
8bf39c3127
@ -54,6 +54,11 @@ class LocationPreviewFragment @Inject constructor(
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
override fun onStop() {
|
||||
views.mapView.onStop()
|
||||
super.onStop()
|
||||
}
|
||||
|
||||
override fun getMenuRes() = R.menu.menu_location_preview
|
||||
|
||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||
|
@ -74,9 +74,14 @@ class LocationSharingFragment @Inject constructor(
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
override fun onStop() {
|
||||
views.mapView.onStop()
|
||||
super.onStop()
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
super.onDestroy()
|
||||
locationTracker.stop()
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
private fun onMapReady() {
|
||||
|
Loading…
Reference in New Issue
Block a user