summaryrefslogtreecommitdiffhomepage
path: root/ui/src/main/res
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-09-22 16:37:17 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-09-22 23:53:47 +0200
commitd56f2fb1bbb762a7c0148d89cfa44e369a839fe6 (patch)
tree190781f08d231adda81c780ec53890c30c7b4052 /ui/src/main/res
parent9df8e5e239a298d1b17ce2486af5277b53c35411 (diff)
tv: hide deletion button when nothing to delete
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/src/main/res')
-rw-r--r--ui/src/main/res/layout/tv_activity.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/src/main/res/layout/tv_activity.xml b/ui/src/main/res/layout/tv_activity.xml
index 8a544258..b1e240c3 100644
--- a/ui/src/main/res/layout/tv_activity.xml
+++ b/ui/src/main/res/layout/tv_activity.xml
@@ -59,6 +59,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
+ android:visibility="@{tunnels.isEmpty &amp;&amp; !isDeleting ? View.GONE : View.VISIBLE}"
android:text="@{isDeleting ? &quot;⏎&quot; : &quot;🗑&quot;}"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" />