Define a list of radios for SATELLITE_MODE_RADIOS

Bug: 274636414
Test: build. atest android.provider.SettingsBackupTest

Change-Id: I10b6a23bf2e5cd5ca9e4d5548a7b5ecd3c561725
This commit is contained in:
Thomas Nguyen
2023-03-28 14:02:46 -07:00
parent a61b888587
commit 492a9a5a59
2 changed files with 8 additions and 0 deletions

View File

@@ -25,6 +25,8 @@
<!-- Comma-separated list of bluetooth, wifi, and cell. -->
<string name="def_airplane_mode_radios" translatable="false">cell,bluetooth,uwb,wifi,wimax</string>
<string name="airplane_mode_toggleable_radios" translatable="false">bluetooth,wifi</string>
<string name="def_satellite_mode_radios" translatable="false"></string>
<integer name="def_satellite_mode_enabled" translatable="false">0</integer>
<string name="def_bluetooth_disabled_profiles" translatable="false">0</string>
<bool name="def_auto_time">true</bool>
<bool name="def_auto_time_zone">true</bool>

View File

@@ -2413,6 +2413,12 @@ class DatabaseHelper extends SQLiteOpenHelper {
loadStringSetting(stmt, Settings.Global.AIRPLANE_MODE_RADIOS,
R.string.def_airplane_mode_radios);
loadStringSetting(stmt, Global.SATELLITE_MODE_RADIOS,
R.string.def_satellite_mode_radios);
loadIntegerSetting(stmt, Global.SATELLITE_MODE_ENABLED,
R.integer.def_satellite_mode_enabled);
loadStringSetting(stmt, Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS,
R.string.airplane_mode_toggleable_radios);