diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-05-15 17:20:15 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-05-15 17:20:15 +0200 |
commit | 309993eec6085cfa0e112cd5f45c8c55beeee5db (patch) | |
tree | c18e3433b4e06688f8eda3f99f91a2bf5c70dccf /app/java/res/xml/settings.xml | |
parent | 08b40e81c62420e977e82189482fc07c0d6ace31 (diff) |
works as intended :)
Diffstat (limited to 'app/java/res/xml/settings.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> |