[8.1.0]红绿灯UI调整+子线程获取高精地图缓存状态

This commit is contained in:
xuxinchao
2025-06-16 18:20:19 +08:00
parent 9eade241a4
commit c9efc7bc64
10 changed files with 14 additions and 7 deletions

View File

@@ -54,6 +54,10 @@ import kotlinx.android.synthetic.main.view_car_info_tab.view.tvPADUpdate
import kotlinx.android.synthetic.main.view_car_info_tab.view.tvPadVersion
import kotlinx.android.synthetic.main.view_car_info_tab.view.tvSlamMapVersion
import kotlinx.android.synthetic.main.view_car_info_tab.view.tvSnInfo
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import system_master.SsmInfo
import system_master.SystemStatusInfo
@@ -106,6 +110,7 @@ class CarInfoTabView @JvmOverloads constructor(
CallerMapShowNameManager.removeListener(TAG)
}
@OptIn(DelicateCoroutinesApi::class)
private fun initView() {
val qrCodeView = CallerOchCustomViewManager.getOchBindQRCodeView(context)
@@ -182,8 +187,10 @@ class CarInfoTabView @JvmOverloads constructor(
}
}
MogoData.mogoMapData.get()?.isCityDataCached {
updateHDDataCacheStatus(it)
GlobalScope.launch(Dispatchers.IO){
MogoData.mogoMapData.get()?.isCityDataCached {
updateHDDataCacheStatus(it)
}
}
if(FunctionBuildConfig.isOffLine){

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

@@ -24,6 +24,7 @@
app:layout_constraintBottom_toBottomOf="@id/ivLightStatus"
app:layout_constraintLeft_toLeftOf="@id/ivLightStatus"
app:layout_constraintRight_toRightOf="@id/ivLightStatus"
app:chartRingWidth="@dimen/dp_6"
/>
<com.mogo.eagle.core.function.hmi.ui.widget.TypefaceTextView

View File

@@ -9,7 +9,6 @@
android:id="@+id/ivLightStatus"
android:layout_width="@dimen/dp_90"
android:layout_height="@dimen/dp_90"
android:src="@drawable/icon_green_light_passenger"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
android:layout_marginStart="@dimen/dp_20"
@@ -19,13 +18,13 @@
<com.mogo.eagle.core.function.hmi.ui.widget.ProportionChartTwoView
android:id="@+id/pcvLightProportion"
android:layout_width="@dimen/dp_76"
android:layout_height="@dimen/dp_76"
android:layout_width="@dimen/dp_70"
android:layout_height="@dimen/dp_70"
app:layout_constraintTop_toTopOf="@id/ivLightStatus"
app:layout_constraintBottom_toBottomOf="@id/ivLightStatus"
app:layout_constraintLeft_toLeftOf="@id/ivLightStatus"
app:layout_constraintRight_toRightOf="@id/ivLightStatus"
app:chartRingWidth="@dimen/dp_3"
app:chartRingWidth="@dimen/dp_4"
/>
<com.mogo.eagle.core.function.hmi.ui.widget.TypefaceTextView

View File

@@ -88,7 +88,7 @@
android:visibility="gone"
app:lightUser="driver"
android:focusable="false"
android:layout_marginTop="@dimen/hmi_traffic_light_layout_margin_top"
android:layout_marginTop="@dimen/dp_40"
/>
<!--红绿灯提醒-->