[Taxi无人化] refactor: 优化命名;

This commit is contained in:
aibingbing
2023-08-21 20:20:36 +08:00
parent fb39b71df9
commit a42e668281
2 changed files with 2 additions and 2 deletions

View File

@@ -256,6 +256,6 @@ class TaxiFragment : BaseTaxiTabFragment<TaxiFragment, TaxiPresenter>(),
} }
fun clickOrderDebugView() { fun clickOrderDebugView() {
orderDebugView.updateData() orderDebugView.toggleOrderDebugView()
} }
} }

View File

@@ -38,7 +38,7 @@ class OrderDebugView @JvmOverloads constructor(
visibility = GONE visibility = GONE
} }
fun updateData() { fun toggleOrderDebugView() {
val data = TaxiModel.getCurTaskAndOrder() val data = TaxiModel.getCurTaskAndOrder()
if (data == null) { if (data == null) {
orderDebugContainer?.visibility = View.GONE orderDebugContainer?.visibility = View.GONE