advanced_preferences.xml 2.43 KB
Newer Older
1
2
3
4
5
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

    <SwitchPreference
        android:defaultValue="false"
Daniel Wolf's avatar
Daniel Wolf committed
6
        android:key="advanced_settings"
7
        android:summary="@string/summary_advanced_settings"
Daniel Wolf's avatar
Daniel Wolf committed
8
        android:title="@string/title_advanced_settings" />
9

Daniel Wolf's avatar
Daniel Wolf committed
10
    <PreferenceCategory android:title="@string/title_general">
11
12
13
14
15
16
17
        <CheckBoxPreference
            android:defaultValue="false"
            android:dependency="advanced_settings"
            android:key="loopback_allowed"
            android:summary="@string/summary_loopback_allowed"
            android:title="@string/title_loopback_allowed" />

Daniel Wolf's avatar
Daniel Wolf committed
18
19
20
21
22
23
24
25
26
27
28
29
30
        <CheckBoxPreference
            android:defaultValue="false"
            android:dependency="advanced_settings"
            android:key="custom_port"
            android:summary="@string/summary_custom_ports"
            android:title="@string/title_custom_ports" />

        <CheckBoxPreference
            android:defaultValue="false"
            android:dependency="advanced_settings"
            android:key="rules_activated"
            android:summary="@string/summary_rules_activated"
            android:title="@string/title_rules_activated" />
31
32
33
34

        <CheckBoxPreference
            android:defaultValue="false"
            android:dependency="advanced_settings"
35
            android:key="dns_over_tcp"
36
            android:summary="@string/summary_dns_over_tcp"
37
            android:title="@string/title_dns_over_tcp" />
38
39
40
41

        <EditTextPreference
            android:defaultValue="500"
            android:dependency="dns_over_tcp"
42
            android:inputType="number"
43
            android:key="tcp_timeout"
44
            android:summary="@string/summary_tcp_timeout"
45
            android:title="@string/title_tcp_timeout" />
Daniel Wolf's avatar
Daniel Wolf committed
46
    </PreferenceCategory>
47
48
49
50
51
52
53
54
55
56
57
58
59

    <PreferenceCategory android:title="@string/title_query_logging">

        <CheckBoxPreference
            android:defaultValue="false"
            android:dependency="advanced_settings"
            android:key="query_logging"
            android:summary="@string/summary_query_logging"
            android:title="@string/title_query_logging" />

        <Preference
            android:dependency="query_logging"
            android:key="export_queries"
60
61
            android:summary="@string/summary_export_queries"
            android:title="@string/title_export_queries" />
62
    </PreferenceCategory>
63
</PreferenceScreen>