[fenix] For https://github.com/mozilla-mobile/fenix/issues/24660 - Overrided contentsSameAs inside TabInCollectionItem class.

pull/600/head
dlp 2 years ago committed by mergify[bot]
parent 53f52a4bc5
commit d31e8ae93d

@ -130,6 +130,10 @@ sealed class AdapterItem(@LayoutRes val viewType: Int) {
) : AdapterItem(TabInCollectionViewHolder.LAYOUT_ID) {
override fun sameAs(other: AdapterItem) =
other is TabInCollectionItem && tab.id == other.tab.id
override fun contentsSameAs(other: AdapterItem): Boolean {
return other is TabInCollectionItem && this.isLastTab == other.isLastTab
}
}
object OnboardingHeader : AdapterItem(OnboardingHeaderViewHolder.LAYOUT_ID)

Loading…
Cancel
Save