summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-04-20 23:43:19 +0200
committerbunnei <bunneidev@gmail.com>2023-06-03 09:05:54 +0200
commit5b26ac92936a98f1fd688a9bb4464601b5b1c6f2 (patch)
treea0ad0613fe6c3ebfc8e683d996492b4ee9483423 /src
parentandroid: Fix cast for abstract settings (diff)
downloadyuzu-5b26ac92936a98f1fd688a9bb4464601b5b1c6f2.tar
yuzu-5b26ac92936a98f1fd688a9bb4464601b5b1c6f2.tar.gz
yuzu-5b26ac92936a98f1fd688a9bb4464601b5b1c6f2.tar.bz2
yuzu-5b26ac92936a98f1fd688a9bb4464601b5b1c6f2.tar.lz
yuzu-5b26ac92936a98f1fd688a9bb4464601b5b1c6f2.tar.xz
yuzu-5b26ac92936a98f1fd688a9bb4464601b5b1c6f2.tar.zst
yuzu-5b26ac92936a98f1fd688a9bb4464601b5b1c6f2.zip
Diffstat (limited to 'src')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt
index af85065d0..29faed72d 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt
@@ -31,6 +31,10 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView)
}
fun putSetting(setting: AbstractSetting) {
+ if (setting.section == null) {
+ return
+ }
+
val section = settings.getSection(setting.section!!)!!
if (section.getSetting(setting.key!!) == null) {
section.putSetting(setting)