feat: Replay disabled
This commit is contained in:
parent
fb62c8dd77
commit
9f0bd9e147
4 changed files with 70 additions and 7 deletions
|
@ -51,7 +51,7 @@ class MapControl(
|
|||
|
||||
val navigationStatusControl = NavigationStatusControl()
|
||||
|
||||
val replay = ReplayResources(this)
|
||||
val tripControl = TripControl(this, TripMode.GPS)
|
||||
|
||||
// Observers
|
||||
private lateinit var routeControl: RouteControl
|
||||
|
@ -129,7 +129,7 @@ class MapControl(
|
|||
enabled = true
|
||||
}
|
||||
|
||||
replay.replayOriginLocation()
|
||||
tripControl.initLocation()
|
||||
}
|
||||
|
||||
fun mapboxNavigation(): MapboxNavigation {
|
||||
|
@ -144,7 +144,7 @@ class MapControl(
|
|||
|
||||
navigationStatusControl.registerObserver(searchControl)
|
||||
|
||||
replay.onAttached(mapboxNavigation)
|
||||
tripControl.onAttached(mapboxNavigation)
|
||||
}
|
||||
|
||||
override fun onDetached(mapboxNavigation: MapboxNavigation) {
|
||||
|
@ -155,7 +155,7 @@ class MapControl(
|
|||
|
||||
navigationStatusControl.unregisterObserver(searchControl)
|
||||
|
||||
replay.onDetached(mapboxNavigation)
|
||||
tripControl.onDetached(mapboxNavigation)
|
||||
}
|
||||
|
||||
fun onDestroy() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue