mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-26 05:30:05 +00:00
android: Compare all properties between games in DiffCallback
This commit is contained in:
parent
ca5b135ddf
commit
698c854d5b
@ -165,7 +165,7 @@ class GameAdapter(private val activity: AppCompatActivity) :
|
|||||||
|
|
||||||
private class DiffCallback : DiffUtil.ItemCallback<Game>() {
|
private class DiffCallback : DiffUtil.ItemCallback<Game>() {
|
||||||
override fun areItemsTheSame(oldItem: Game, newItem: Game): Boolean {
|
override fun areItemsTheSame(oldItem: Game, newItem: Game): Boolean {
|
||||||
return oldItem.programId == newItem.programId
|
return oldItem == newItem
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun areContentsTheSame(oldItem: Game, newItem: Game): Boolean {
|
override fun areContentsTheSame(oldItem: Game, newItem: Game): Boolean {
|
||||||
|
@ -74,6 +74,7 @@ class Game(
|
|||||||
result = 31 * result + path.hashCode()
|
result = 31 * result + path.hashCode()
|
||||||
result = 31 * result + programId.hashCode()
|
result = 31 * result + programId.hashCode()
|
||||||
result = 31 * result + developer.hashCode()
|
result = 31 * result + developer.hashCode()
|
||||||
|
result = 31 * result + version.hashCode()
|
||||||
result = 31 * result + isHomebrew.hashCode()
|
result = 31 * result + isHomebrew.hashCode()
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user