diff options
author | t895 <clombardo169@gmail.com> | 2023-12-11 02:48:05 +0100 |
---|---|---|
committer | t895 <clombardo169@gmail.com> | 2023-12-12 23:25:37 +0100 |
commit | 698c854d5bcd5c021e94dea9bea44e6b07e1c53d (patch) | |
tree | f4659e6c132f439524a1ec88d9c307df071db840 | |
parent | android: Expose MemoryUtil size formatting function (diff) | |
download | yuzu-698c854d5bcd5c021e94dea9bea44e6b07e1c53d.tar yuzu-698c854d5bcd5c021e94dea9bea44e6b07e1c53d.tar.gz yuzu-698c854d5bcd5c021e94dea9bea44e6b07e1c53d.tar.bz2 yuzu-698c854d5bcd5c021e94dea9bea44e6b07e1c53d.tar.lz yuzu-698c854d5bcd5c021e94dea9bea44e6b07e1c53d.tar.xz yuzu-698c854d5bcd5c021e94dea9bea44e6b07e1c53d.tar.zst yuzu-698c854d5bcd5c021e94dea9bea44e6b07e1c53d.zip |
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/GameAdapter.kt | 2 | ||||
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/model/Game.kt | 1 |
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) : private class DiffCallback : DiffUtil.ItemCallback<Game>() { override fun areItemsTheSame(oldItem: Game, newItem: Game): Boolean { - return oldItem.programId == newItem.programId + return oldItem == newItem } 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( result = 31 * result + path.hashCode() result = 31 * result + programId.hashCode() result = 31 * result + developer.hashCode() + result = 31 * result + version.hashCode() result = 31 * result + isHomebrew.hashCode() return result } |