Victor Chang | 16da2aa | 2016-03-11 19:44:56 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2016 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" |
Fan Zhang | 74c61d1 | 2017-11-17 16:49:54 -0800 | [diff] [blame] | 18 | xmlns:settings="http://schemas.android.com/apk/res-auto"> |
Victor Chang | 16da2aa | 2016-03-11 19:44:56 +0000 | [diff] [blame] | 19 | |
| 20 | <Preference |
| 21 | android:key="version" |
| 22 | android:textColor="?android:attr/textColorSecondary" |
| 23 | android:selectable="false"/> |
| 24 | |
| 25 | <com.android.settingslib.RestrictedSwitchPreference |
| 26 | android:key="always_on_vpn" |
| 27 | android:title="@string/vpn_menu_lockdown" |
| 28 | android:defaultValue="false" |
Charles He | cce4e61 | 2017-03-24 14:03:55 +0000 | [diff] [blame] | 29 | android:summary="@string/vpn_always_on_summary" |
Andre Lago | f22679a | 2016-07-19 15:26:34 +0100 | [diff] [blame] | 30 | settings:userRestriction="no_config_vpn" |
| 31 | settings:useAdditionalSummary="true" |
| 32 | settings:restrictedSwitchSummary="@string/disabled_by_admin_summary_text" /> |
Victor Chang | 16da2aa | 2016-03-11 19:44:56 +0000 | [diff] [blame] | 33 | |
Robin Lee | e7347dd | 2016-12-16 12:05:04 +0000 | [diff] [blame] | 34 | <com.android.settingslib.RestrictedSwitchPreference |
| 35 | android:key="lockdown_vpn" |
| 36 | android:title="@string/vpn_require_connection" |
| 37 | android:defaultValue="false" |
Robin Lee | e7347dd | 2016-12-16 12:05:04 +0000 | [diff] [blame] | 38 | android:dependency="always_on_vpn" |
| 39 | settings:userRestriction="no_config_vpn" |
| 40 | settings:useAdditionalSummary="true" |
| 41 | settings:restrictedSwitchSummary="@string/disabled_by_admin_summary_text" /> |
| 42 | |
Fan Zhang | 12b03b2 | 2017-10-29 13:57:29 -0700 | [diff] [blame] | 43 | <com.android.settingslib.RestrictedPreference |
Victor Chang | 16da2aa | 2016-03-11 19:44:56 +0000 | [diff] [blame] | 44 | android:key="forget_vpn" |
| 45 | android:title="@string/vpn_forget_long" |
Antony Sargent | 0d9afde | 2018-05-17 11:55:40 -0700 | [diff] [blame] | 46 | android:icon="@drawable/ic_delete" |
Victor Chang | 16da2aa | 2016-03-11 19:44:56 +0000 | [diff] [blame] | 47 | settings:userRestriction="no_config_vpn" |
| 48 | settings:useAdminDisabledSummary="true" /> |
| 49 | </PreferenceScreen> |