[3.4.0][Fix]解决anr问题

This commit is contained in:
chenfufeng
2023-09-21 11:11:15 +08:00
parent 766d25e6c2
commit e8b85aebcf

View File

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