diff options
Diffstat (limited to 'app/java/res/xml')
-rw-r--r-- | app/java/res/xml/settings.xml | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/app/java/res/xml/settings.xml b/app/java/res/xml/settings.xml index ea44ce0..0cd7034 100644 --- a/app/java/res/xml/settings.xml +++ b/app/java/res/xml/settings.xml @@ -9,14 +9,32 @@ 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 de/activates the proxy on WiFi dis/connect" + 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" /> - <!-- USE_WIFI_LISTENER --> <!-- SELECT_FROM_KNOWN_SSIDS --> <!-- <MultiSelectListPreference --> <!-- android:id="@+id/known_ssids" --> @@ -24,7 +42,4 @@ <!-- android:entries="" --> <!-- android:entryValues="" --> <!-- /> --> - - <!-- USE_AUTOMATIC_DNS/PIHOLE_SERVER_DISCOVERY --> - <!-- SET_MANUAL_DNS/PIHOLE_SERVER_IP --> </PreferenceScreen> |