Commit adb984b1 authored by chengkun's avatar chengkun

onresume重新刷新界面

parent 6f2f52ba
......@@ -60,7 +60,6 @@ class OrderListActivity : BaseMvvmActivity<BorderActivityOrderListBinding, Order
private fun initClickEvent() {
binding.smartRefresh.setOnRefreshListener(this)
binding.smartRefresh.setOnLoadMoreListener(this)
binding.smartRefresh.autoRefresh()
binding.tvRefunded.setOnClickListener {
vm._listType = OrderListViewModel.REFUND
binding.tvRefunded.setTypeface(Typeface.defaultFromStyle(Typeface.BOLD))
......@@ -111,4 +110,9 @@ class OrderListActivity : BaseMvvmActivity<BorderActivityOrderListBinding, Order
super.onBackPressed()
vm.goBackPointReport()
}
override fun onResume() {
super.onResume()
binding.smartRefresh.autoRefresh()
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment