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:
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…
Reference in New Issue
Block a user