[8.2.2][fix]开始验证路线后重置输入框等状态
This commit is contained in:
@@ -99,6 +99,7 @@ class RoutingSelectView: ConstraintLayout, SwtichRoutingViewCallback, InputTextC
|
||||
ToastUtils.showShort("请设置轨迹信息")
|
||||
}
|
||||
OchChainLogManager.writeChainLogRouting("[选择灰度任务]","[选择灰度任务] 当前选择 ${data} ")
|
||||
resetStatus()
|
||||
swtichViewModel?.showLoading()
|
||||
viewModel?.startGrayTaskAndQueryRoutingContrail(data.contrailId!!,data)
|
||||
}
|
||||
@@ -137,14 +138,7 @@ class RoutingSelectView: ConstraintLayout, SwtichRoutingViewCallback, InputTextC
|
||||
animator?.repeatMode = ValueAnimator.RESTART // 设置重复模式
|
||||
}
|
||||
animator?.start()
|
||||
InputManager.clearInput()
|
||||
actv_current_order.text = ResourcesUtils.getString(R.string.biz_routing_order_default)
|
||||
switch_routing_rv.smoothScrollToPosition(0)
|
||||
acctv_search_byid.isChecked = false
|
||||
acctv_search_byid.text=""
|
||||
acctv_search_byid.setBackgroundResource(R.drawable.biz_input_order_id_normal)
|
||||
aciv_input_icon.setImageResource(R.drawable.biz_routing_search_right_normal)
|
||||
InputManager.setKeyboardVisable(View.GONE)
|
||||
resetStatus()
|
||||
}
|
||||
|
||||
cl_select_order_contain.onClick {
|
||||
@@ -224,6 +218,17 @@ class RoutingSelectView: ConstraintLayout, SwtichRoutingViewCallback, InputTextC
|
||||
|
||||
}
|
||||
|
||||
private fun resetStatus() {
|
||||
InputManager.clearInput()
|
||||
actv_current_order.text = ResourcesUtils.getString(R.string.biz_routing_order_default)
|
||||
switch_routing_rv.smoothScrollToPosition(0)
|
||||
acctv_search_byid.isChecked = false
|
||||
acctv_search_byid.text = ""
|
||||
acctv_search_byid.setBackgroundResource(R.drawable.biz_input_order_id_normal)
|
||||
aciv_input_icon.setImageResource(R.drawable.biz_routing_search_right_normal)
|
||||
InputManager.setKeyboardVisable(GONE)
|
||||
}
|
||||
|
||||
private fun showEmptyView() {
|
||||
switch_routing_rv.visibility = GONE
|
||||
include_empty.visibility = View.VISIBLE
|
||||
|
||||
Reference in New Issue
Block a user