mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-17 12:30:07 +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()
|
||||
}
|
||||
|
||||
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…
Add table
Reference in a new issue