tv: hide deletion button when nothing to delete

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2020-09-22 16:37:17 +02:00
parent 9df8e5e239
commit d56f2fb1bb

View File

@ -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" />