Commit c9480c3e authored by wanglei's avatar wanglei

...

parent cbbc19f0
......@@ -168,8 +168,8 @@ class HistoryFragment : BaseFragment<FragmentHistoryBinding>(FragmentHistoryBind
val createList = viewModel.historyList.filter { it.createType == qrState }
binding.llEmpty.isVisible = createList.isEmpty()
val sortList = sortList(createList).toMutableList()
if (sortList.size > 3) {
sortList.add(3, AdScanBean())
if (sortList.size >= 3) {
sortList.add(2, AdScanBean())
}
adapter?.submitList(sortList)
}
......
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