mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-19 18:53:32 +00:00
Fix network settings crash on Android
Register AIRPLANE_MODE setting in settingsItems map and add missing string resources to prevent crashes when opening network options. Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
@@ -615,6 +615,15 @@ abstract class SettingsItem(
|
||||
valuesId = R.array.appletModeValues
|
||||
)
|
||||
)
|
||||
|
||||
// Network Settings
|
||||
put(
|
||||
SwitchSetting(
|
||||
BooleanSetting.AIRPLANE_MODE,
|
||||
titleId = R.string.airplane_mode,
|
||||
descriptionId = R.string.airplane_mode_description
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -430,6 +430,8 @@
|
||||
|
||||
<!-- Network Settings Headers -->
|
||||
<string name="network_settings_header">Network Settings</string>
|
||||
<string name="airplane_mode">Airplane Mode</string>
|
||||
<string name="airplane_mode_description">Disable all network functionality, similar to Nintendo Switch airplane mode</string>
|
||||
|
||||
<!-- Zep Zone Headers -->
|
||||
<string name="memory_layout_header">Memory Layout</string>
|
||||
|
||||
Reference in New Issue
Block a user