Inform mapview when fragment is stopped.

This commit is contained in:
Onuray Sahin 2022-01-24 17:12:17 +03:00
parent c81654d769
commit 8bf39c3127
2 changed files with 11 additions and 1 deletions

View File

@ -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 {

View File

@ -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() {