From 6ffd5155da90ad9ada11acb7be6924263980938d Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Tue, 21 Jun 2022 11:05:15 +0800 Subject: [PATCH] =?UTF-8?q?[Update]Bus=E8=83=BD=E8=AE=BE=E7=BD=AE=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E9=A9=BE=E9=A9=B6=E6=9C=80=E5=A4=A7=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hmi/ui/tools/AutoPilotAndCheckView.kt | 27 +++++++------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotAndCheckView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotAndCheckView.kt index c1443511c5..c402d12e99 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotAndCheckView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotAndCheckView.kt @@ -74,7 +74,8 @@ class AutoPilotAndCheckView @JvmOverloads constructor( ToastUtils.showShort("超过最大限速值60,设置失败") } else -> { - llSpeedPosition.background = resources.getDrawable(R.drawable.pilot_speed_bg) + llSpeedPosition.background = + resources.getDrawable(R.drawable.pilot_speed_bg) keyBoardUtil?.hideKeyboard() etInputSpeed.clearFocus() // 设置自动驾驶速度 @@ -107,13 +108,15 @@ class AutoPilotAndCheckView @JvmOverloads constructor( etInputSpeed.setOnFocusChangeListener { v, hasFocus -> when { hasFocus -> { - llSpeedPosition.background = resources.getDrawable(R.drawable.pilot_speed_high_light_bg) + llSpeedPosition.background = + resources.getDrawable(R.drawable.pilot_speed_high_light_bg) if (keyBoardUtil == null) { keyBoardUtil = KeyBoardUtil(sKeyBoardView, etInputSpeed) } keyBoardUtil?.showKeyboard() } - else -> llSpeedPosition.background = resources.getDrawable(R.drawable.pilot_speed_bg) + else -> llSpeedPosition.background = + resources.getDrawable(R.drawable.pilot_speed_bg) } } etInputSpeed.setOnTouchListener { v, event -> @@ -150,28 +153,16 @@ class AutoPilotAndCheckView @JvmOverloads constructor( this.clickListener = clickListener } - /** - * Bus不可设置自动驾驶速度,而Taxi可以 - */ private fun updateSpeedSettingViews() { - when { - AppIdentityModeUtils.isBus(FunctionBuildConfig.appIdentityMode) -> { - tvSpeedTitle.visibility = View.GONE - llSpeedPosition.visibility = View.GONE - } - else -> { - tvSpeedTitle.visibility = View.VISIBLE - llSpeedPosition.visibility = View.VISIBLE - } - } + tvSpeedTitle.visibility = View.VISIBLE + llSpeedPosition.visibility = View.VISIBLE } - fun showAdUpgradeStatus(ipcUpgradeStateInfo: IPCUpgradeStateInfo){ + fun showAdUpgradeStatus(ipcUpgradeStateInfo: IPCUpgradeStateInfo) { systemVersionView?.showAdUpgradeStatus(ipcUpgradeStateInfo) } - override fun onAttachedToWindow() { super.onAttachedToWindow() CallerAutoPilotStatusListenerManager.addListener(TAG, this)