aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/res/layout/tunnel_editor_fragment.xml
diff options
context:
space:
mode:
authorEric Kuck <eric@bluelinelabs.com>2018-07-04 16:47:55 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2018-07-06 04:14:19 +0200
commit500a705531a3210aa98b17b77085cf1ea86c274d (patch)
tree8eee63dc202e5e1414354f5827873a1e9c642be9 /app/src/main/res/layout/tunnel_editor_fragment.xml
parentTunnelEditor: better looking buttons (diff)
downloadwireguard-android-500a705531a3210aa98b17b77085cf1ea86c274d.tar.xz
wireguard-android-500a705531a3210aa98b17b77085cf1ea86c274d.zip
AppListDialogFragment: add implementation for excluding applications
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Diffstat (limited to 'app/src/main/res/layout/tunnel_editor_fragment.xml')
-rw-r--r--app/src/main/res/layout/tunnel_editor_fragment.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/src/main/res/layout/tunnel_editor_fragment.xml b/app/src/main/res/layout/tunnel_editor_fragment.xml
index 060920d6..cbdc46cf 100644
--- a/app/src/main/res/layout/tunnel_editor_fragment.xml
+++ b/app/src/main/res/layout/tunnel_editor_fragment.xml
@@ -14,6 +14,10 @@
<import type="com.wireguard.config.Peer" />
<variable
+ name="fragment"
+ type="com.wireguard.android.fragment.TunnelEditorFragment" />
+
+ <variable
name="config"
type="com.wireguard.config.Config.Observable" />
</data>
@@ -211,6 +215,15 @@
android:inputType="number"
android:text="@={config.interfaceSection.mtu}"
android:textAlignment="center" />
+
+ <Button
+ style="@style/Widget.AppCompat.Button.Borderless.Colored"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="-8dp"
+ android:layout_below="@+id/dns_servers_text"
+ android:onClick="@{fragment::onRequestSetExcludedApplications}"
+ android:text="@{fragment.excludedApplications().length == 0 ? @string/set_excluded_applications : String.format(@string/x_excluded_applications, fragment.excludedApplications().length)}" />
</RelativeLayout>
</android.support.v7.widget.CardView>