[6.1.0优化]mPresenter 增加 ?

This commit is contained in:
wangmingjun
2023-10-20 17:10:45 +08:00
parent 50cff456f6
commit 376162db44

View File

@@ -57,7 +57,7 @@ class TaxiFragment : BaseTaxiTabFragment<TaxiFragment, TaxiPresenter>(),
fun changeOverview(eventLogout: EventLogout) {
if (eventLogout.messgae == EventLogout.LOGOUT_TYPE) {
d(SceneConstant.M_TAXI + TAG, "changeOverview Event消息去登出")
mPresenter.logout()
mPresenter?.logout()
}
}
@@ -107,12 +107,12 @@ class TaxiFragment : BaseTaxiTabFragment<TaxiFragment, TaxiPresenter>(),
// 在自动驾驶中,或者自己确认车辆环境可开启自动驾驶 则可点击
if (!isStarting) {
d(SceneConstant.M_TAXI + TAG, "startAutopilot")
mPresenter.startAutoPilot()
mPresenter?.startAutoPilot()
}
}
override fun pauseStartAutopilot() {
mPresenter.pauseStartAutopilot()
mPresenter?.pauseStartAutopilot()
}
override fun resumeStartAutopilot(remainingTime: Long) {
@@ -120,7 +120,7 @@ class TaxiFragment : BaseTaxiTabFragment<TaxiFragment, TaxiPresenter>(),
}
override fun startNaviToEndStation(isShow: Boolean) {
mPresenter.startNaviToEndStation(isShow)
mPresenter?.startNaviToEndStation(isShow)
}
override fun initViews() {
@@ -134,7 +134,7 @@ class TaxiFragment : BaseTaxiTabFragment<TaxiFragment, TaxiPresenter>(),
}
override fun stopAutoStartAutopilot() {
mPresenter.stopAutoStartAutopilot()
mPresenter?.stopAutoStartAutopilot()
}
private fun initFlowEvent() {
@@ -275,7 +275,7 @@ class TaxiFragment : BaseTaxiTabFragment<TaxiFragment, TaxiPresenter>(),
findViewById<View>(R.id.test_bar_on_the_way_to_end)?.setOnClickListener {
if (!isStarting) {
mPresenter.startAutoPilot()
mPresenter?.startAutoPilot()
}
TaxiTaskModel.mockOnTheWayToEndStation()
}