mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-14 03:55:06 +01:00
Fix source item flashing when pinning
This commit is contained in:
parent
52ae208df3
commit
26d5a87bef
@ -46,4 +46,15 @@ data class SourceItem(
|
||||
) {
|
||||
holder.bind(this)
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
if (other is SourceItem) {
|
||||
return source.id == other.source.id && getHeader()?.code == other.getHeader()?.code
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return source.id.hashCode() + (getHeader()?.code?.hashCode() ?: 0).toInt()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user