- To support Mobile plan preference controller, extended LifecycleObserver pattern to also observe onCreate and onSaveInstance. Bug: 31799836 Test: RunSettingsRoboTests Change-Id: Ie98db7efa91f0a8b4c8a06a784d3351237e59fe0
83 lines
3.4 KiB
XML
83 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2016 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/com.android.settings">
|
|
|
|
<SwitchPreference
|
|
android:key="toggle_airplane"
|
|
android:title="@string/airplane_mode"
|
|
android:disableDependentsState="true"
|
|
android:order="-30"/>
|
|
|
|
<com.android.settingslib.RestrictedPreference
|
|
android:key="mobile_network_settings"
|
|
android:title="@string/network_settings_title"
|
|
android:dependency="toggle_airplane"
|
|
android:order="-15"
|
|
settings:keywords="@string/keywords_more_mobile_networks"
|
|
settings:userRestriction="no_config_mobile_networks"
|
|
settings:useAdminDisabledSummary="true">
|
|
<intent
|
|
android:action="android.intent.action.MAIN"
|
|
android:targetPackage="com.android.phone"
|
|
android:targetClass="com.android.phone.MobileNetworkSettings"/>
|
|
</com.android.settingslib.RestrictedPreference>
|
|
|
|
<com.android.settingslib.RestrictedPreference
|
|
android:fragment="com.android.settings.TetherSettings"
|
|
android:key="tether_settings"
|
|
android:title="@string/tether_settings_title_all"
|
|
android:order="-5"
|
|
settings:userRestriction="no_config_tethering"
|
|
settings:useAdminDisabledSummary="true"/>
|
|
|
|
<com.android.settingslib.RestrictedPreference
|
|
android:fragment="com.android.settings.vpn2.VpnSettings"
|
|
android:key="vpn_settings"
|
|
android:title="@string/vpn_settings_title"
|
|
android:order="0"
|
|
settings:userRestriction="no_config_vpn"
|
|
settings:useAdminDisabledSummary="true"/>
|
|
|
|
<com.android.settingslib.RestrictedPreference
|
|
android:key="manage_mobile_plan"
|
|
android:title="@string/manage_mobile_plan_title"
|
|
android:persistent="false"
|
|
settings:userRestriction="no_config_mobile_networks"
|
|
settings:useAdminDisabledSummary="true"/>
|
|
|
|
<Preference
|
|
android:key="wifi_calling_settings"
|
|
android:title="@string/wifi_calling_settings_title"
|
|
android:fragment="com.android.settings.WifiCallingSettings"
|
|
settings:keywords="@string/keywords_wifi_calling"/>
|
|
|
|
<Preference
|
|
android:fragment="com.android.settings.ProxySelector"
|
|
android:key="proxy_settings"
|
|
android:title="@string/proxy_settings_title"/>
|
|
|
|
<!-- Network reset -->
|
|
<com.android.settingslib.RestrictedPreference
|
|
android:key="network_reset"
|
|
android:title="@string/reset_network_title"
|
|
settings:keywords="@string/keywords_network_reset"
|
|
android:fragment="com.android.settings.ResetNetwork"
|
|
settings:userRestriction="no_network_reset"
|
|
settings:useAdminDisabledSummary="true"/>
|
|
</PreferenceScreen> |