From d56f2fb1bbb762a7c0148d89cfa44e369a839fe6 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 22 Sep 2020 16:37:17 +0200 Subject: tv: hide deletion button when nothing to delete Signed-off-by: Jason A. Donenfeld --- ui/src/main/res/layout/tv_activity.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/src/main') 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 && !isDeleting ? View.GONE : View.VISIBLE}" android:text="@{isDeleting ? "⏎" : "🗑"}" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" /> -- cgit v1.2.3