For #23670 - Update collection on tab removal

This commit is contained in:
Alexandru2909 2022-03-11 14:03:15 +02:00 committed by mergify[bot]
parent cb4f8ed0c0
commit bea17a4ab8

View File

@ -117,7 +117,9 @@ sealed class AdapterItem(@LayoutRes val viewType: Int) {
override fun contentsSameAs(other: AdapterItem): Boolean {
(other as? CollectionItem)?.let {
return it.expanded == this.expanded && it.collection.title == this.collection.title
return it.expanded == this.expanded &&
it.collection.title == this.collection.title &&
it.collection.tabs == this.collection.tabs
} ?: return false
}
}