Loading res/layout/hotspot_ap_band_selection_dialog.xml 0 → 100644 +47 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2018 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="8dp" android:paddingStart="@dimen/wifi_ap_band_checkbox_padding"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingStart="8dp" android:text="@string/wifi_ap_band_select_one" android:textAppearance="?android:attr/textAppearanceSmall"/> <CheckBox android:id="@+id/box_2g" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/wifi_ap_band_checkbox_padding" android:layout_marginTop="@dimen/wifi_ap_band_checkbox_padding" android:paddingStart="@dimen/wifi_ap_band_checkbox_padding" android:textAppearance="?android:attr/textAppearanceMedium"/> <CheckBox android:id="@+id/box_5g" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingStart="@dimen/wifi_ap_band_checkbox_padding" android:textAppearance="?android:attr/textAppearanceMedium"/> </LinearLayout> No newline at end of file res/values/arrays.xml +0 −1 Original line number Diff line number Diff line Loading @@ -269,7 +269,6 @@ <!-- 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"> <item>@string/wifi_ap_choose_auto</item> <item>@string/wifi_ap_choose_2G</item> <item>@string/wifi_ap_choose_5G</item> </string-array> Loading res/values/dimens.xml +1 −0 Original line number Diff line number Diff line Loading @@ -191,6 +191,7 @@ <!-- WiFi Preferences --> <dimen name="wifi_divider_height">1px</dimen> <dimen name="wifi_ap_band_checkbox_padding">16dp</dimen> <!-- Color picker --> <dimen name="color_swatch_size">16dp</dimen> Loading res/values/strings.xml +2 −0 Original line number Diff line number Diff line Loading @@ -664,6 +664,8 @@ <string name="save">Save</string> <!-- Button label for generic done action [CHAR LIMIT=20] --> <string name="done">Done</string> <!-- Button label for generic apply action [CHAR LIMIT=20] --> <string name="apply">Apply</string> <!-- Title of the Settings activity shown within the application itself. --> <string name="settings_label">Settings</string> Loading res/xml/wifi_tether_settings.xml +5 −2 Original line number Diff line number Diff line Loading @@ -35,8 +35,11 @@ android:title="@string/wifi_hotspot_auto_off_title" android:summary="@string/wifi_hotspot_auto_off_summary"/> <ListPreference <com.android.settings.widget.HotspotApBandSelectionPreference android:key="wifi_tether_network_ap_band" android:title="@string/wifi_hotspot_ap_band_title" android:summary="@string/summary_placeholder" /> android:dialogLayout="@layout/hotspot_ap_band_selection_dialog" android:dialogTitle="@string/wifi_hotspot_ap_band_title" android:negativeButtonText="@string/cancel" android:positiveButtonText="@string/apply"/> </PreferenceScreen> No newline at end of file Loading
res/layout/hotspot_ap_band_selection_dialog.xml 0 → 100644 +47 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2018 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="8dp" android:paddingStart="@dimen/wifi_ap_band_checkbox_padding"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingStart="8dp" android:text="@string/wifi_ap_band_select_one" android:textAppearance="?android:attr/textAppearanceSmall"/> <CheckBox android:id="@+id/box_2g" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/wifi_ap_band_checkbox_padding" android:layout_marginTop="@dimen/wifi_ap_band_checkbox_padding" android:paddingStart="@dimen/wifi_ap_band_checkbox_padding" android:textAppearance="?android:attr/textAppearanceMedium"/> <CheckBox android:id="@+id/box_5g" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingStart="@dimen/wifi_ap_band_checkbox_padding" android:textAppearance="?android:attr/textAppearanceMedium"/> </LinearLayout> No newline at end of file
res/values/arrays.xml +0 −1 Original line number Diff line number Diff line Loading @@ -269,7 +269,6 @@ <!-- 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"> <item>@string/wifi_ap_choose_auto</item> <item>@string/wifi_ap_choose_2G</item> <item>@string/wifi_ap_choose_5G</item> </string-array> Loading
res/values/dimens.xml +1 −0 Original line number Diff line number Diff line Loading @@ -191,6 +191,7 @@ <!-- WiFi Preferences --> <dimen name="wifi_divider_height">1px</dimen> <dimen name="wifi_ap_band_checkbox_padding">16dp</dimen> <!-- Color picker --> <dimen name="color_swatch_size">16dp</dimen> Loading
res/values/strings.xml +2 −0 Original line number Diff line number Diff line Loading @@ -664,6 +664,8 @@ <string name="save">Save</string> <!-- Button label for generic done action [CHAR LIMIT=20] --> <string name="done">Done</string> <!-- Button label for generic apply action [CHAR LIMIT=20] --> <string name="apply">Apply</string> <!-- Title of the Settings activity shown within the application itself. --> <string name="settings_label">Settings</string> Loading
res/xml/wifi_tether_settings.xml +5 −2 Original line number Diff line number Diff line Loading @@ -35,8 +35,11 @@ android:title="@string/wifi_hotspot_auto_off_title" android:summary="@string/wifi_hotspot_auto_off_summary"/> <ListPreference <com.android.settings.widget.HotspotApBandSelectionPreference android:key="wifi_tether_network_ap_band" android:title="@string/wifi_hotspot_ap_band_title" android:summary="@string/summary_placeholder" /> android:dialogLayout="@layout/hotspot_ap_band_selection_dialog" android:dialogTitle="@string/wifi_hotspot_ap_band_title" android:negativeButtonText="@string/cancel" android:positiveButtonText="@string/apply"/> </PreferenceScreen> No newline at end of file