From 7804a4ec12595235a621b34c0f8a05cd0dd861c6 Mon Sep 17 00:00:00 2001 From: Alexandru2909 Date: Fri, 11 Mar 2022 14:03:15 +0200 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/23670 - Update collection on tab removal --- .../fenix/home/sessioncontrol/SessionControlAdapter.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlAdapter.kt b/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlAdapter.kt index b375abe280..0020078ff8 100644 --- a/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlAdapter.kt +++ b/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlAdapter.kt @@ -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 } }