This CL updates the preference for selecting the enabled tether bands to allow individual selection of multiple bands instead of forcing a single selection. Note that while this makes the UI theoretically support new bands in the future, the wifi backend only supports selecting a single band or all bands which this CL does not address. Test: robotests Bug: 73102003 Change-Id: Ib2d4a2834c5cd11875515d308f7b20bfc8471959
45 lines
1.9 KiB
XML
45 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2017 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.
|
|
-->
|
|
|
|
<PreferenceScreen
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
|
android:title="@string/wifi_hotspot_checkbox_text"
|
|
settings:initialExpandedChildrenCount="2">
|
|
|
|
<com.android.settings.widget.ValidatedEditTextPreference
|
|
android:key="wifi_tether_network_name"
|
|
android:title="@string/wifi_hotspot_name_title"
|
|
android:summary="@string/summary_placeholder" />
|
|
|
|
<com.android.settings.widget.ValidatedEditTextPreference
|
|
android:key="wifi_tether_network_password"
|
|
android:title="@string/wifi_hotspot_password_title" />
|
|
|
|
<SwitchPreference
|
|
android:key="wifi_tether_auto_turn_off"
|
|
android:title="@string/wifi_hotspot_auto_off_title"
|
|
android:summary="@string/wifi_hotspot_auto_off_summary"/>
|
|
|
|
<com.android.settings.widget.HotspotApBandSelectionPreference
|
|
android:key="wifi_tether_network_ap_band"
|
|
android:title="@string/wifi_hotspot_ap_band_title"
|
|
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> |