Change UI for wireless AP tether band selection
We decided to use the list preference after all due to some devices not supporting various combinations of AP configurations. This change makes it so that there are three different UIs depending on the configurations which are supported. - 5.0 GHz unsupported: disable the preference and just set the value to 2.4 GHz - all supported, no dual mode: allow the user to choose EITHER 2.4 GHz or 5.0 GHz - all supported, dual mode: allow the user to choose 2.4 GHz or BOTH 2.4 GHz & 5.0 GHz with 5.0 being preferred Test: atest SettingsRoboTests Bug: 80315296 Change-Id: I888d35811a98b8cf0155a3cb96c42ff762763378 Merged-In: I888d35811a98b8cf0155a3cb96c42ff762763378
This commit is contained in:
@@ -284,17 +284,27 @@
|
||||
|
||||
<!-- Wi-Fi AP band settings. Either Auto, 2.4GHz or 5GHz. -->
|
||||
<!-- Note that adding/removing/moving the items will need wifi settings code change. -->
|
||||
<string-array name="wifi_ap_band_config_full">
|
||||
<string-array translatable="false" name="wifi_ap_band_config_full">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
</string-array>
|
||||
|
||||
<string-array translatable="false" name="wifi_ap_band_summary_full">
|
||||
<item>@string/wifi_ap_choose_2G</item>
|
||||
<item>@string/wifi_ap_choose_5G</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="wifi_ap_band_summary_full">
|
||||
<item>@string/wifi_ap_2G</item>
|
||||
<item>@string/wifi_ap_5G</item>
|
||||
<string-array translatable="false" name="wifi_ap_band_dual_mode">
|
||||
<item>0</item>
|
||||
<item>-1</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="wifi_ap_band_config_2G_only">
|
||||
<string-array translatable="false" name="wifi_ap_band_dual_mode_summary">
|
||||
<item>@string/wifi_ap_choose_2G</item>
|
||||
<item>@string/wifi_ap_prefer_5G</item>
|
||||
</string-array>
|
||||
|
||||
<string-array translatable="false" name="wifi_ap_band_config_2G_only">
|
||||
<item>@string/wifi_ap_choose_auto</item>
|
||||
<item>@string/wifi_ap_choose_2G</item>
|
||||
</string-array>
|
||||
|
@@ -1990,8 +1990,10 @@
|
||||
<string name="wifi_ap_choose_auto">Auto</string>
|
||||
<!-- Label for the radio button to choose wifi ap 2.4 GHz band -->
|
||||
<string name="wifi_ap_choose_2G">2.4 GHz Band</string>
|
||||
<!-- Label for the radio button to choose wifi ap 5GHz band -->
|
||||
<!-- Label for the radio button to only choose wifi ap 5GHz band -->
|
||||
<string name="wifi_ap_choose_5G">5.0 GHz Band</string>
|
||||
<!-- Label for the radio button to prefer 5GHz wifi ap band [CHAR LIMIT=80]-->
|
||||
<string name="wifi_ap_prefer_5G">5.0 GHz Band preferred</string>
|
||||
<!-- Label for adding to the list of selected bands when 2.4 GHz is selected -->
|
||||
<string name="wifi_ap_2G">2.4 GHz</string>
|
||||
<!-- Label for adding to the list of selected bands when 5.0 GHz is selected -->
|
||||
|
Reference in New Issue
Block a user