Improvement - do not call notifyDataSetChanged when selection state is unchanged

pull/2222/head
Uladzislau Petrushkevich 2 weeks ago
parent bef966bdfe
commit 70342c8c6c

@ -70,6 +70,8 @@ class HabitCardListAdapter @Inject constructor(
* Sets all items as not selected.
*/
override fun clearSelection() {
if (selected.isEmpty()) return
selected.clear()
notifyDataSetChanged()
observable.notifyListeners()

Loading…
Cancel
Save