mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-19 02:33:32 +00:00
android: Fix crash when opening Zep Zone settings
Fixed NullPointerException caused by missing EXTENDED_DYNAMIC_STATE and USE_CONDITIONAL_RENDERING entries in SettingsItem.settingsItems HashMap. These settings were referenced in the Zep Zone menu but not registered, causing the app to crash when trying to display them. Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
@@ -462,6 +462,22 @@ abstract class SettingsItem(
|
||||
valuesId = R.array.frameSkippingModeValues
|
||||
)
|
||||
)
|
||||
put(
|
||||
SingleChoiceSetting(
|
||||
IntSetting.EXTENDED_DYNAMIC_STATE,
|
||||
titleId = R.string.extended_dynamic_state,
|
||||
descriptionId = R.string.extended_dynamic_state_description,
|
||||
choicesId = R.array.extendedDynamicStateNames,
|
||||
valuesId = R.array.extendedDynamicStateValues
|
||||
)
|
||||
)
|
||||
put(
|
||||
SwitchSetting(
|
||||
BooleanSetting.USE_CONDITIONAL_RENDERING,
|
||||
titleId = R.string.use_conditional_rendering,
|
||||
descriptionId = R.string.use_conditional_rendering_description
|
||||
)
|
||||
)
|
||||
|
||||
// Applet Mode Settings
|
||||
put(
|
||||
|
||||
Reference in New Issue
Block a user