blob: bcaa6b0a62fc36ec71429aaab3ba20039274d661 [file] [log] [blame]
Victor Chang16da2aa2016-03-11 19:44:56 +00001<?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 Zhang74c61d12017-11-17 16:49:54 -080018 xmlns:settings="http://schemas.android.com/apk/res-auto">
Victor Chang16da2aa2016-03-11 19:44:56 +000019
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 Hecce4e612017-03-24 14:03:55 +000029 android:summary="@string/vpn_always_on_summary"
Andre Lagof22679a2016-07-19 15:26:34 +010030 settings:userRestriction="no_config_vpn"
31 settings:useAdditionalSummary="true"
32 settings:restrictedSwitchSummary="@string/disabled_by_admin_summary_text" />
Victor Chang16da2aa2016-03-11 19:44:56 +000033
Robin Leee7347dd2016-12-16 12:05:04 +000034 <com.android.settingslib.RestrictedSwitchPreference
35 android:key="lockdown_vpn"
36 android:title="@string/vpn_require_connection"
37 android:defaultValue="false"
Robin Leee7347dd2016-12-16 12:05:04 +000038 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 Zhang12b03b22017-10-29 13:57:29 -070043 <com.android.settingslib.RestrictedPreference
Victor Chang16da2aa2016-03-11 19:44:56 +000044 android:key="forget_vpn"
45 android:title="@string/vpn_forget_long"
Antony Sargent0d9afde2018-05-17 11:55:40 -070046 android:icon="@drawable/ic_delete"
Victor Chang16da2aa2016-03-11 19:44:56 +000047 settings:userRestriction="no_config_vpn"
48 settings:useAdminDisabledSummary="true" />
49</PreferenceScreen>