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, "高精地图缓存已下载!") } } }