2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

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

This commit is contained in:
dlp 2022-05-11 23:01:24 +03:00 committed by mergify[bot]
parent 53f52a4bc5
commit d31e8ae93d

View File

@ -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)