[2.13.0-arch-opt] fix bug of view long click

This commit is contained in:
zhongchao
2023-01-25 23:11:08 +08:00
parent c011549e44
commit 40d2977027

View File

@@ -69,6 +69,7 @@ import com.mogo.eagle.core.function.hmi.ui.notice.NoticeCheckDialog
import com.mogo.eagle.core.function.hmi.ui.notice.traffic.NoticeTrafficDialog
import com.mogo.eagle.core.function.hmi.ui.setting.CameraLiveView.Companion.cameraLiveView
import com.mogo.eagle.core.function.hmi.ui.setting.IPCReportWindow
import com.mogo.eagle.core.function.hmi.ui.setting.ToggleDebugView.Companion.toggleDebugView
import com.mogo.eagle.core.function.hmi.ui.setting.ToolsView.Companion.toolsView
import com.mogo.eagle.core.function.hmi.ui.tools.AdUpgradeDialog
import com.mogo.eagle.core.function.hmi.ui.widget.DemoModeView
@@ -165,11 +166,11 @@ class MoGoHmiFragment : MvpFragment<MoGoHmiContract.View?, HmiPresenter?>(),
}
ivToolsIcon?.setOnClickListener {
toolsView.showToolsFloat(context)
toolsView.showToolsFloat(requireContext())
}
viewShowDebugView.setOnLongClickListener {
toolsView.showToolsFloat(context)
toggleDebugView.toggle(requireContext())
true
}