From de90e27a24f52b209e8b0c63f2f629d91905f662 Mon Sep 17 00:00:00 2001 From: EmArrow Date: Tue, 8 Oct 2024 15:21:45 +0800 Subject: [PATCH] [6.7.0] add func of carinfo in bind --- .../core/function/hmi/bone/tab/CarInfoTabView.kt | 8 ++++++++ .../src/main/res/layout/view_car_info_tab.xml | 14 +++++++------- .../src/main/res/layout/view_tab_switch.xml | 4 ++-- .../function/api/och/IOchCustomViewProvider.kt | 5 +++++ .../call/och/CallerOchCustomViewManager.kt | 7 +++++++ 5 files changed, 29 insertions(+), 9 deletions(-) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/bone/tab/CarInfoTabView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/bone/tab/CarInfoTabView.kt index f0f6b2f939..a801ccd787 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/bone/tab/CarInfoTabView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/bone/tab/CarInfoTabView.kt @@ -18,6 +18,7 @@ import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsListenerManage import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager import com.mogo.eagle.core.function.call.hmi.CallerHmiListenerManager import com.mogo.eagle.core.function.call.map.CallerMapUIServiceManager +import com.mogo.eagle.core.function.call.och.CallerOchCustomViewManager import com.mogo.eagle.core.function.hmi.R import com.mogo.eagle.core.function.hmi.ui.tools.OfflineMapDialog import com.mogo.eagle.core.function.hmi.ui.utils.HmiActionLog @@ -29,6 +30,7 @@ import com.mogo.eagle.core.utilcode.util.NetworkUtils import com.mogo.eagle.core.utilcode.util.ToastUtils import com.mogo.eagle.core.utilcode.util.UiThreadHandler import com.mogo.map.MogoData +import kotlinx.android.synthetic.main.view_car_info_tab.view.clBind import kotlinx.android.synthetic.main.view_car_info_tab.view.ivCarType import kotlinx.android.synthetic.main.view_car_info_tab.view.tvADMapVersion import kotlinx.android.synthetic.main.view_car_info_tab.view.tvADVersionName @@ -90,6 +92,12 @@ class CarInfoTabView @JvmOverloads constructor( } private fun initView() { + + val qrCodeView = CallerOchCustomViewManager.getOchBindQRCodeView(context) + qrCodeView?.let { + clBind.addView(qrCodeView) + } + showCurrentPadVersion() showCurrentAdVersion() updateAdHdMapVersion() diff --git a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_car_info_tab.xml b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_car_info_tab.xml index 9971faecc5..f9a36dfc20 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_car_info_tab.xml +++ b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_car_info_tab.xml @@ -112,13 +112,13 @@ app:layout_constraintLeft_toRightOf="@+id/tvCarNoPos" app:layout_constraintTop_toTopOf="@+id/tvCarNoPos" /> - - - - - - - + + android:layout_height="@dimen/dp_141">