diff options
author | Arne Schwabe <arne@rfc2549.org> | 2021-10-24 18:14:18 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2021-10-24 18:14:18 +0200 |
commit | af4a789df914732e65b05dae582ed21eed0d91b7 (patch) | |
tree | 310895a240d6ebed32a38441492aaa6d5ed673dd /main/src/ui/res | |
parent | 3697577127dc8c8b16519fb9d08cb14f58133a0e (diff) |
Convert IP settings to Kotlin and use autosummary provider
Diffstat (limited to 'main/src/ui/res')
-rw-r--r-- | main/src/ui/res/xml/vpn_ipsettings.xml | 71 |
1 files changed, 38 insertions, 33 deletions
diff --git a/main/src/ui/res/xml/vpn_ipsettings.xml b/main/src/ui/res/xml/vpn_ipsettings.xml index 5df7ffa8..2b03c694 100644 --- a/main/src/ui/res/xml/vpn_ipsettings.xml +++ b/main/src/ui/res/xml/vpn_ipsettings.xml @@ -1,53 +1,58 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- +<?xml version="1.0" encoding="utf-8"?><!-- ~ Copyright (c) 2012-2016 Arne Schwabe ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt --> -<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" > +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> <SwitchPreference - android:disableDependentsState="true" - android:key="usePull" - android:summaryOff="@string/pull_off_summary" - android:summaryOn="@string/pull_on_summary" - android:title="@string/use_pull" /> + android:disableDependentsState="true" + android:key="usePull" + android:summaryOff="@string/pull_off_summary" + android:summaryOn="@string/pull_on_summary" + android:title="@string/use_pull" /> - <PreferenceCategory android:title="IP" > + <PreferenceCategory android:title="IP"> <EditTextPreference - android:dependency="usePull" - android:dialogMessage="@string/ipv4_dialog_title" - android:key="ipv4_address" - android:title="@string/ipv4_address" /> + android:dependency="usePull" + android:dialogMessage="@string/ipv4_dialog_title" + android:key="ipv4_address" + android:title="@string/ipv4_address" + app:useSimpleSummaryProvider="true" /> <EditTextPreference - android:dependency="usePull" - android:dialogMessage="@string/ipv6_dialog_tile" - android:key="ipv6_address" - android:title="@string/ipv6_address" /> + android:dependency="usePull" + android:dialogMessage="@string/ipv6_dialog_tile" + android:key="ipv6_address" + android:title="@string/ipv6_address" + app:useSimpleSummaryProvider="true" /> <CheckBoxPreference - android:key="nobind" - android:persistent="false" - android:summary="@string/nobind_summary" - android:title="@string/no_bind" /> + android:key="nobind" + android:persistent="false" + android:summary="@string/nobind_summary" + android:title="@string/no_bind" /> </PreferenceCategory> - <PreferenceCategory android:title="@string/dns" > + <PreferenceCategory android:title="@string/dns"> <CheckBoxPreference - android:key="overrideDNS" - android:summary="@string/dns_override_summary" - android:title="@string/override_dns" /> + android:key="overrideDNS" + android:summary="@string/dns_override_summary" + android:title="@string/override_dns" /> <EditTextPreference - android:key="searchdomain" - android:title="@string/searchdomain" /> + android:key="searchdomain" + android:title="@string/searchdomain" + app:useSimpleSummaryProvider="true" /> <EditTextPreference - android:dialogMessage="@string/dns1_summary" - android:key="dns1" - android:title="@string/dns_server" /> + android:dialogMessage="@string/dns1_summary" + android:key="dns1" + android:title="@string/dns_server" + app:useSimpleSummaryProvider="true" /> <EditTextPreference - android:dialogMessage="@string/secondary_dns_message" - android:key="dns2" - android:title="@string/backup_dns" /> + android:dialogMessage="@string/secondary_dns_message" + android:key="dns2" + android:title="@string/backup_dns" + app:useSimpleSummaryProvider="true" /> </PreferenceCategory> </PreferenceScreen>
\ No newline at end of file |