Commit 445887b0 authored by wanglei's avatar wanglei

...

parent 303cb9fe
......@@ -126,6 +126,11 @@ class RepeatActivity : BaseActivity<ActivityRepeatBinding>() {
}
launch(Dispatchers.Main) {
mediaAdapter.removeData(cleanList)
if (mediaAdapter.isEmptyData()) {
binding.llEmpty.isVisible = true
binding.tvSize.text = "0.0"
binding.tvUnit.text = "B"
}
}
}
}
......
......@@ -106,7 +106,10 @@ class MediaAdapter(private val clickAction: (Pair<Boolean, List<MediaBean>>) ->
}
beanList.removeIf { it.beans.size <= 1 }
notifyDataSetChanged()
clickAction.invoke(getSelectData())
}
fun isEmptyData(): Boolean {
return beanList.isEmpty()
}
}
\ No newline at end of file
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