[android] - harden activation/deactivation of underlying ref counting components

This commit is contained in:
Tobrun
2018-10-18 15:19:04 +02:00
committed by Tobrun
parent 16c4c9a45c
commit bb5b558f21
2 changed files with 16 additions and 5 deletions

View File

@@ -120,7 +120,11 @@ class RecyclerViewActivity : AppCompatActivity() {
}
fun onDestroy() {
mapHolder?.mapView?.onDestroy()
mapHolder?.mapView?.let {
it.onPause()
it.onStop()
it.onDestroy()
}
}
class MapItem