From e8b85aebcfdc06147a469902d657a15123fc901c Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Thu, 21 Sep 2023 11:11:15 +0800 Subject: [PATCH] =?UTF-8?q?[3.4.0][Fix]=E8=A7=A3=E5=86=B3anr=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../function/business/cachemap/CacheHDMapManager.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/cachemap/CacheHDMapManager.kt b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/cachemap/CacheHDMapManager.kt index 86176d020b..8099758100 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/cachemap/CacheHDMapManager.kt +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/cachemap/CacheHDMapManager.kt @@ -14,9 +14,9 @@ object CacheHDMapManager { fun scheduleGetLocation() { if (!AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)) { - ThreadUtils.getIoPool().execute { - mogoMapData.get()?.isCityDataCached { - if(!it){ + mogoMapData.get()?.isCityDataCached { + if (!it) { + ThreadUtils.getIoPool().execute { while (true) { val loc = CallerChassisLocationWGS84ListenerManager.getChassisLocationWGS84() @@ -40,9 +40,9 @@ object CacheHDMapManager { } catch (e: Exception) { } } - }else{ - CallerLogger.i(M_MAP + TAG, "高精地图缓存已下载!") } + } else { + CallerLogger.i(M_MAP + TAG, "高精地图缓存已下载!") } } }