summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar t8952023-12-10 20:48:05 -0500
committerGravatar t8952023-12-12 17:25:37 -0500
commit698c854d5bcd5c021e94dea9bea44e6b07e1c53d (patch)
treef4659e6c132f439524a1ec88d9c307df071db840 /src
parentandroid: Expose MemoryUtil size formatting function (diff)
downloadyuzu-698c854d5bcd5c021e94dea9bea44e6b07e1c53d.tar.gz
yuzu-698c854d5bcd5c021e94dea9bea44e6b07e1c53d.tar.xz
yuzu-698c854d5bcd5c021e94dea9bea44e6b07e1c53d.zip
android: Compare all properties between games in DiffCallback
Diffstat (limited to 'src')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/GameAdapter.kt2
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/GameAdapter.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/GameAdapter.kt
index 928bfe5a7..a578f0de8 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/GameAdapter.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/GameAdapter.kt
@@ -165,7 +165,7 @@ class GameAdapter(private val activity: AppCompatActivity) :
165 165
166 private class DiffCallback : DiffUtil.ItemCallback<Game>() { 166 private class DiffCallback : DiffUtil.ItemCallback<Game>() {
167 override fun areItemsTheSame(oldItem: Game, newItem: Game): Boolean { 167 override fun areItemsTheSame(oldItem: Game, newItem: Game): Boolean {
168 return oldItem.programId == newItem.programId 168 return oldItem == newItem
169 } 169 }
170 170
171 override fun areContentsTheSame(oldItem: Game, newItem: Game): Boolean { 171 override fun areContentsTheSame(oldItem: Game, newItem: Game): Boolean {
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt
index ac642c16e..f1ea1e20f 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt
@@ -74,6 +74,7 @@ class Game(
74 result = 31 * result + path.hashCode() 74 result = 31 * result + path.hashCode()
75 result = 31 * result + programId.hashCode() 75 result = 31 * result + programId.hashCode()
76 result = 31 * result + developer.hashCode() 76 result = 31 * result + developer.hashCode()
77 result = 31 * result + version.hashCode()
77 result = 31 * result + isHomebrew.hashCode() 78 result = 31 * result + isHomebrew.hashCode()
78 return result 79 return result
79 } 80 }