diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2023-04-20 23:43:19 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2023-06-03 09:05:54 +0200 |
commit | 5b26ac92936a98f1fd688a9bb4464601b5b1c6f2 (patch) | |
tree | a0ad0613fe6c3ebfc8e683d996492b4ee9483423 | |
parent | android: Fix cast for abstract settings (diff) | |
download | yuzu-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 |
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/ui/SettingsFragmentPresenter.kt | 4 |
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) |