[Taxi无人化] refactor: 优化命名;
This commit is contained in:
@@ -256,6 +256,6 @@ class TaxiFragment : BaseTaxiTabFragment<TaxiFragment, TaxiPresenter>(),
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun clickOrderDebugView() {
|
fun clickOrderDebugView() {
|
||||||
orderDebugView.updateData()
|
orderDebugView.toggleOrderDebugView()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user