From f77507d702b5c9a18e9bce9d2cd1dd8bd8d118f2 Mon Sep 17 00:00:00 2001 From: yangyakun Date: Mon, 13 Mar 2023 21:36:25 +0800 Subject: [PATCH] =?UTF-8?q?[sweeper]=20[=E4=B8=BB=E7=BA=BF=E7=A8=8B?= =?UTF-8?q?=E7=94=BB=E7=BA=BF]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/mogo/och/sweeper/view/WeltMapOverView.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {