summaryrefslogtreecommitdiff
path: root/app/java/res/xml/settings.xml
blob: 0cd7034a327a1d1ef6f818aec40d1984c200c0bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
>
    <SwitchPreference
        android:key="use_automatic_dns_server_discovery"
        android:defaultValue="true"
        android:title="Use automatic DNS Server / Pihole discovery"
        android:summary="Whether to use the automatic discovery mechanism to set the DNS server"
    />

    <EditTextPreference
        android:key="dns_server_address"
        android:title="Pihole IP address"
    />

    <SwitchPreference
        android:key="use_wifi_listener"
        android:defaultValue="false"
        android:title="Use WiFi listener"
        android:summary="Automatically deactivates the proxy on WiFi disconnect"
    />

    <SwitchPreference
        android:key="use_wifi_listener_for_activation"
        android:dependency="use_wifi_listener"
        android:defaultValue="false"
        android:title="Use WiFi listener for activation"
        android:summary="Automatically activates the proxy on WiFi connect when connecting to specific WLAN. Needs location services to function!"
    />

    <EditTextPreference
        android:key="wifi_listener_ssid"
        android:dependency="use_wifi_listener_for_activation"
        android:title="WLAN SSID"
    />

    <!-- SELECT_FROM_KNOWN_SSIDS -->
    <!-- <MultiSelectListPreference -->
    <!--     android:id="@+id/known_ssids" -->
    <!--     android:key="known_ssids" -->
    <!--     android:entries="" -->
    <!--     android:entryValues="" -->
    <!-- /> -->
</PreferenceScreen>