fix: Application crash prevention

This commit is contained in:
Piotr Dec 2024-07-31 20:28:45 +02:00
parent 785a35473e
commit bf878dc2c6
Signed by: stawros
GPG key ID: F89F27AD8F881A91
2 changed files with 7 additions and 1 deletions

View file

@ -56,6 +56,8 @@ class MapboxMapper {
} }
} }
} }
// TODO: implement
state.lanes = Lanes(Arrows(listOf()), Arrows(listOf()))
this.laneGuidance?.apply { this.laneGuidance?.apply {
this.allLanes.apply { this.allLanes.apply {
println() println()

View file

@ -136,7 +136,11 @@ class GarminManeuver : GarminModelItem {
var flag: Boolean = false // WTF? var flag: Boolean = false // WTF?
override fun merge(item: GarminModelItem) { override fun merge(item: GarminModelItem) {
TODO("Not yet implemented") val maneuver = item as GarminManeuver
this.lanes = maneuver.lanes
this.direction = maneuver.direction
this.distance = maneuver.distance
this.flag = maneuver.flag
} }
companion object { companion object {