summaryrefslogtreecommitdiffstats
path: root/src/android
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-08-23 01:49:02 +0200
committerCharles Lombardo <clombardo169@gmail.com>2023-08-30 01:42:41 +0200
commit369d06292fae1ac37dfb2863deb16978f29094ad (patch)
treebf4c56fa33c0e2e15e47ba72b5c624268c6ec219 /src/android
parentandroid: Migrate settings to navigation component (diff)
downloadyuzu-369d06292fae1ac37dfb2863deb16978f29094ad.tar
yuzu-369d06292fae1ac37dfb2863deb16978f29094ad.tar.gz
yuzu-369d06292fae1ac37dfb2863deb16978f29094ad.tar.bz2
yuzu-369d06292fae1ac37dfb2863deb16978f29094ad.tar.lz
yuzu-369d06292fae1ac37dfb2863deb16978f29094ad.tar.xz
yuzu-369d06292fae1ac37dfb2863deb16978f29094ad.tar.zst
yuzu-369d06292fae1ac37dfb2863deb16978f29094ad.zip
Diffstat (limited to 'src/android')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SwitchSettingViewHolder.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SwitchSettingViewHolder.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SwitchSettingViewHolder.kt
index 200fbc473..25b689d66 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SwitchSettingViewHolder.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/viewholder/SwitchSettingViewHolder.kt
@@ -25,10 +25,12 @@ class SwitchSettingViewHolder(val binding: ListItemSettingSwitchBinding, adapter
binding.textSettingDescription.text = ""
binding.textSettingDescription.visibility = View.GONE
}
+
+ binding.switchWidget.setOnCheckedChangeListener(null)
+ binding.switchWidget.isChecked = setting.checked
binding.switchWidget.setOnCheckedChangeListener { _: CompoundButton, _: Boolean ->
adapter.onBooleanClick(item, bindingAdapterPosition, binding.switchWidget.isChecked)
}
- binding.switchWidget.isChecked = setting.checked
setStyle(setting.isEditable, binding)
}