diff --git a/app/src/main/res/layout/config_detail_fragment.xml b/app/src/main/res/layout/config_detail_fragment.xml
index add03c08..b229e568 100644
--- a/app/src/main/res/layout/config_detail_fragment.xml
+++ b/app/src/main/res/layout/config_detail_fragment.xml
@@ -19,26 +19,25 @@
android:padding="16dp">
+ android:text="@string/status" />
+ android:layout_below="@+id/status_label"
+ android:text="@{config.enabled ? @string/enabled : @string/disabled}" />
@@ -51,12 +50,6 @@
android:ellipsize="end"
android:maxLines="1"
android:text="@{config.interface.publicKey}" />
-
-
diff --git a/app/src/main/res/layout/config_edit_fragment.xml b/app/src/main/res/layout/config_edit_fragment.xml
index 285215fb..4f48727c 100644
--- a/app/src/main/res/layout/config_edit_fragment.xml
+++ b/app/src/main/res/layout/config_edit_fragment.xml
@@ -154,12 +154,6 @@
android:inputType="number"
android:text="@={config.interface.mtu}"
android:textAlignment="center" />
-
-
diff --git a/app/src/main/res/layout/config_list_item.xml b/app/src/main/res/layout/config_list_item.xml
index 52bd385c..23935fdc 100644
--- a/app/src/main/res/layout/config_list_item.xml
+++ b/app/src/main/res/layout/config_list_item.xml
@@ -3,6 +3,8 @@
+
+
@@ -19,16 +21,20 @@
style="?android:attr/textAppearanceMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_alignParentStart="true"
+ android:layout_toStartOf="@+id/config_switch"
android:text="@{item.name}" />
+ android:gravity="center_vertical"
+ android:onClick="@{() -> item.enabled ? VpnService.instance.disable(item.name) : VpnService.instance.enable(item.name)}"
+ android:text="@string/toggle"
+ android:textColor="@{item.enabled ? @android:color/holo_green_dark : @android:color/holo_red_dark}" />
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index bba997e2..bee8685a 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -6,11 +6,12 @@
WireGuard
Configuration name
- Connected
- Disconnected
+ Delete
+ Disabled
DNS servers
Edit
Add WireGuard Configuration
+ Enabled
Generate
(auto)
(generated)
@@ -23,5 +24,6 @@
Public key
Save
Settings
- Delete
+ Status
+ Toggle