From 0e000cf2d10d9e83ccdf92142c1e632de6cace13 Mon Sep 17 00:00:00 2001 From: zhongchao Date: Thu, 16 Feb 2023 21:02:10 +0800 Subject: [PATCH] [2.13.0-arch-opt]turn light bug fix and add toggle debug view trigger --- .../src/main/res/layout/bus_p_base_fragment.xml | 8 ++++++++ .../src/main/res/layout/bus_base_fragment.xml | 8 ++++++++ .../java/com/mogo/och/noop/OchNoopFragment.kt | 5 +---- .../main/res/layout/och_noop_fragment_hmi.xml | 16 ++++++++-------- .../src/main/res/layout/taxi_p_base_fragment.xml | 8 ++++++++ .../src/main/res/layout/taxi_base_fragment.xml | 8 ++++++++ .../hmi/ui/setting/ToggleDebugViewTrigger.kt | 16 ++++++++++++++++ .../hmi/ui/vehicle/TurnLightViewStatus.kt | 6 ++++-- 8 files changed, 61 insertions(+), 14 deletions(-) create mode 100644 core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/ToggleDebugViewTrigger.kt diff --git a/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_base_fragment.xml b/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_base_fragment.xml index 3e12a1ebb2..96b90db2b4 100644 --- a/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_base_fragment.xml +++ b/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_base_fragment.xml @@ -12,6 +12,14 @@ app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent"/> + + + + (), } override fun initViews() { - viewShowDebugView.setOnLongClickListener { - ToggleDebugView.toggleDebugView.toggle(requireContext()) - true - } + } diff --git a/OCH/mogo-och-noop/src/main/res/layout/och_noop_fragment_hmi.xml b/OCH/mogo-och-noop/src/main/res/layout/och_noop_fragment_hmi.xml index b5c29c1225..8cb712a588 100644 --- a/OCH/mogo-och-noop/src/main/res/layout/och_noop_fragment_hmi.xml +++ b/OCH/mogo-och-noop/src/main/res/layout/och_noop_fragment_hmi.xml @@ -6,19 +6,19 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - - + + + + + +