aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/res
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-07-12 01:58:23 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-07-12 02:04:52 +0200
commit22fb7db3d90fa1e7effe3518bf8196434d27e4b9 (patch)
tree5f764a3c442e8522d83d0fdc953946598c64b7c1 /app/src/main/res
parentClean up warnings (diff)
downloadwireguard-android-22fb7db3d90fa1e7effe3518bf8196434d27e4b9.tar.xz
wireguard-android-22fb7db3d90fa1e7effe3518bf8196434d27e4b9.zip
TunnelEditorFragment: add DNSes to allowedIPs when excluding rfc1918
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/tunnel_editor_peer.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/res/layout/tunnel_editor_peer.xml b/app/src/main/res/layout/tunnel_editor_peer.xml
index 8afc5006..472b4cac 100644
--- a/app/src/main/res/layout/tunnel_editor_peer.xml
+++ b/app/src/main/res/layout/tunnel_editor_peer.xml
@@ -103,10 +103,10 @@
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/allowed_ips_label"
android:layout_alignParentEnd="true"
- android:checked="@{item.allowedIPsContainsDefaultRouteModRFC1918}"
+ android:checked="@{item.isExcludePrivateIPsOn}"
android:onClick="@{() -> item.toggleExcludePrivateIPs()}"
android:text="@string/exclude_private_ips"
- android:visibility="@{(item.allowedIPsContainsDefaultRoute || item.allowedIPsContainsDefaultRouteModRFC1918) ? View.VISIBLE : View.GONE}" />
+ android:visibility="@{item.canToggleExcludePrivateIPs ? View.VISIBLE : View.GONE}" />
<EditText
android:id="@+id/allowed_ips_text"