[Settings] Move display of VPN version into summary text
Move the display of version text within VPN into summary part of the
display, and limit the height of summary area.
Bug: 205460459
Test: install apk from b/205460459#comment3 and verify
Change-Id: I666b9db356feeebf04e3be688897c2d9110a5275
(cherry picked from commit 144f295d7a
)
Merged-In: I666b9db356feeebf04e3be688897c2d9110a5275
This commit is contained in:
@@ -15,14 +15,24 @@
|
||||
-->
|
||||
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res-auto">
|
||||
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||
orderingFromXml="false"
|
||||
>
|
||||
|
||||
<!-- To limit the size (in height) of version Preference displayed here,
|
||||
maximum height of TextView need to be set programmingly.
|
||||
Therefore, this Preference got removed from here and will be added
|
||||
dynamically through source code.
|
||||
|
||||
<Preference
|
||||
android:order="0"
|
||||
android:key="version"
|
||||
android:textColor="?android:attr/textColorSecondary"
|
||||
android:selectable="false"/>
|
||||
-->
|
||||
|
||||
<com.android.settingslib.RestrictedSwitchPreference
|
||||
android:order="10"
|
||||
android:key="always_on_vpn"
|
||||
android:title="@string/vpn_menu_lockdown"
|
||||
android:defaultValue="false"
|
||||
@@ -32,6 +42,7 @@
|
||||
settings:restrictedSwitchSummary="@string/disabled_by_admin_summary_text" />
|
||||
|
||||
<com.android.settingslib.RestrictedSwitchPreference
|
||||
android:order="20"
|
||||
android:key="lockdown_vpn"
|
||||
android:title="@string/vpn_require_connection"
|
||||
android:defaultValue="false"
|
||||
@@ -41,6 +52,7 @@
|
||||
settings:restrictedSwitchSummary="@string/disabled_by_admin_summary_text" />
|
||||
|
||||
<com.android.settingslib.RestrictedPreference
|
||||
android:order="30"
|
||||
android:key="forget_vpn"
|
||||
android:title="@string/vpn_forget_long"
|
||||
android:icon="@drawable/ic_delete"
|
||||
|
Reference in New Issue
Block a user