From c30851958e1ac1548955111ab76004db0ec4fefa Mon Sep 17 00:00:00 2001 From: yangyakun Date: Mon, 17 Apr 2023 15:10:53 +0800 Subject: [PATCH] [bugfix] [3.1.0] [pnc] --- .../mogo/eagle/core/function/hmi/ui/vehicle/PncActionsView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/vehicle/PncActionsView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/vehicle/PncActionsView.kt index eb4a4ce4a7..21fd821cf9 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/vehicle/PncActionsView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/vehicle/PncActionsView.kt @@ -67,7 +67,7 @@ class PncActionsView @JvmOverloads constructor( override fun onAttachedToWindow() { super.onAttachedToWindow() - (tvHmiPncActions.layoutParams as MarginLayoutParams).topMargin = topMargin + (tvHmiPncActions.layoutParams as MarginLayoutParams).topMargin = topMargin.toInt() tvHmiPncActions.setTextSize(COMPLEX_UNIT_PX, txtSize.toFloat()) CallerAutoPilotStatusListenerManager.addListener(TAG, this)