diff --git a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/WeltMapOverView.kt b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/WeltMapOverView.kt index 6e90424f11..b76830ada4 100644 --- a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/WeltMapOverView.kt +++ b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/WeltMapOverView.kt @@ -266,7 +266,9 @@ class WeltMapOverView : ConstraintLayout, IMoGoChassisLocationGCJ02Listener { for (i in routeList.indices) { routeCoordinatesLatLngs.add(LatLng(routeList[i].latitude,routeList[i].longitude)) } - drawRouteListPolyline(routeCoordinatesLatLngs) + ThreadUtils.runOnUiThread { + drawRouteListPolyline(routeCoordinatesLatLngs) + } } private fun drawRouteListPolyline(routeList: MutableList) {