mirror of
https://github.com/FossifyOrg/Phone.git
synced 2025-12-24 00:17:45 -05:00
fix: avoid calling notifyDataSetChanged() immediately after submitList() (#556)
Need to switch to payloads.
This commit is contained in:
@@ -314,8 +314,11 @@ class RecentCallsAdapter(
|
||||
fun updateItems(newItems: List<CallLogItem>, highlightText: String = "") {
|
||||
if (textToHighlight != highlightText) {
|
||||
textToHighlight = highlightText
|
||||
submitList(newItems)
|
||||
notifyDataSetChanged()
|
||||
submitList(newItems) {
|
||||
recyclerView.post {
|
||||
notifyDataSetChanged()
|
||||
}
|
||||
}
|
||||
finishActMode()
|
||||
} else {
|
||||
submitList(newItems)
|
||||
|
||||
Reference in New Issue
Block a user