mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 03:59:16 +01:00
Fix same ids issue in library
This commit is contained in:
parent
db5e6f9216
commit
491915aa22
@ -54,6 +54,6 @@ class LibraryHeaderItem(
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return -(category.id!!)
|
||||
return (category.id ?: 0L).hashCode()
|
||||
}
|
||||
}
|
||||
|
@ -181,6 +181,8 @@ class LibraryItem(
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return (manga.id!! + (manga.category shl 50).toLong()).hashCode() // !!.hashCode()
|
||||
var result = manga.id!!.hashCode()
|
||||
result = 31 * result + (header?.hashCode() ?: 0)
|
||||
return result
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user