From 0ab3e294321e5a50d61474ff29391d40edf9e443 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Sun, 7 Jan 2018 20:33:07 -0600 Subject: Tunnel: Remove UNKNOWN state It's never used. Signed-off-by: Samuel Holland --- app/src/main/res/layout/tunnel_detail_fragment.xml | 1 - app/src/main/res/layout/tunnel_list_item.xml | 1 - 2 files changed, 2 deletions(-) (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/tunnel_detail_fragment.xml b/app/src/main/res/layout/tunnel_detail_fragment.xml index 5a30e8dd..4487c9cc 100644 --- a/app/src/main/res/layout/tunnel_detail_fragment.xml +++ b/app/src/main/res/layout/tunnel_detail_fragment.xml @@ -51,7 +51,6 @@ android:layout_height="wrap_content" android:layout_alignBaseline="@+id/interface_title" android:layout_alignParentEnd="true" - android:enabled="@{tunnel.state != State.UNKNOWN}" app:checked="@{tunnel.state == State.UP}" app:onBeforeCheckedChanged="@{() -> tunnel.setState(State.TOGGLE)}" /> diff --git a/app/src/main/res/layout/tunnel_list_item.xml b/app/src/main/res/layout/tunnel_list_item.xml index 8de2b3c2..1ed157e9 100644 --- a/app/src/main/res/layout/tunnel_list_item.xml +++ b/app/src/main/res/layout/tunnel_list_item.xml @@ -46,7 +46,6 @@ android:layout_height="wrap_content" android:layout_alignBaseline="@+id/tunnel_name" android:layout_alignParentEnd="true" - android:enabled="@{item.state != State.UNKNOWN}" app:checked="@{item.state == State.UP}" app:onBeforeCheckedChanged="@{() -> item.setState(State.TOGGLE)}" /> -- cgit v1.2.3