diff --git a/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerFunctionFragment.kt b/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerFunctionFragment.kt index 60d4ab23ca..91ca752e7d 100644 --- a/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerFunctionFragment.kt +++ b/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerFunctionFragment.kt @@ -62,6 +62,9 @@ class BusPassengerFunctionFragment : .replace(R.id.fl_function_group, it, fragmentTag) .commitNow() } + cl_container.setOnClickListener { + dismissAllowingStateLoss() + } } override fun getLayoutId(): Int = R.layout.bus_p_function_fragment @@ -72,7 +75,7 @@ class BusPassengerFunctionFragment : dialog?.window?.let { BarUtils.hideStatusBarAndSticky(it) } - dialog?.setCancelable(false) + //dialog?.setCancelable(false) } private val videoListener = CompoundButton.OnCheckedChangeListener { _, isChecked -> diff --git a/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerFunctionSoftFragment.kt b/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerFunctionSoftFragment.kt index 5d166fb23b..84f6d5b1f6 100644 --- a/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerFunctionSoftFragment.kt +++ b/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerFunctionSoftFragment.kt @@ -10,7 +10,6 @@ import android.view.View import android.widget.SeekBar import android.widget.SeekBar.OnSeekBarChangeListener import android.widget.TextView -import android.widget.Toast import androidx.core.content.ContextCompat import androidx.recyclerview.widget.LinearSnapHelper import androidx.recyclerview.widget.SnapHelper @@ -286,15 +285,18 @@ class BusPassengerFunctionSoftFragment : // region 灯 private fun setLightListener() { tv_light_top_01.setOnCheckedChangeListener { buttonView, isChecked -> + SoundPoolHelper.getSoundPoolHelper().playSoundWithRedId(context, R.raw.bus_di) mPresenter?.setLightData(isChecked, tv_light_top_02.isChecked, tv_light_atmosphere.isChecked) setLightView(isChecked, tv_light_top_02.isChecked, tv_light_atmosphere.isChecked) } tv_light_top_02.setOnCheckedChangeListener { buttonView, isChecked -> + SoundPoolHelper.getSoundPoolHelper().playSoundWithRedId(context, R.raw.bus_di) mPresenter?.setLightData(isChecked, tv_light_top_02.isChecked, tv_light_atmosphere.isChecked) setLightView(tv_light_top_01.isChecked, isChecked, tv_light_atmosphere.isChecked) } tv_light_atmosphere.setOnCheckedChangeListener { buttonView, isChecked -> + SoundPoolHelper.getSoundPoolHelper().playSoundWithRedId(context, R.raw.bus_di) mPresenter?.setLightData(isChecked, tv_light_top_02.isChecked, tv_light_atmosphere.isChecked) setLightView(tv_light_top_01.isChecked, tv_light_top_02.isChecked, isChecked) } diff --git a/OCH/mogo-och-bus-passenger/src/m1/res/layout/bus_p_function_fragment.xml b/OCH/mogo-och-bus-passenger/src/m1/res/layout/bus_p_function_fragment.xml index 110538eaa4..e0dc85c2e5 100644 --- a/OCH/mogo-och-bus-passenger/src/m1/res/layout/bus_p_function_fragment.xml +++ b/OCH/mogo-och-bus-passenger/src/m1/res/layout/bus_p_function_fragment.xml @@ -2,6 +2,7 @@ + android:layout_height="wrap_content"/>