summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard/config
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/com/wireguard/config')
-rw-r--r--app/src/main/java/com/wireguard/config/Interface.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/com/wireguard/config/Interface.java b/app/src/main/java/com/wireguard/config/Interface.java
index c3068dbb..214c90ad 100644
--- a/app/src/main/java/com/wireguard/config/Interface.java
+++ b/app/src/main/java/com/wireguard/config/Interface.java
@@ -292,6 +292,11 @@ public class Interface {
}
@Bindable
+ public int getExcludedApplicationsCount() {
+ return Attribute.stringToList(excludedApplications).length;
+ }
+
+ @Bindable
public String getListenPort() {
return listenPort;
}
@@ -334,6 +339,7 @@ public class Interface {
public void setExcludedApplications(final String excludedApplications) {
this.excludedApplications = excludedApplications;
notifyPropertyChanged(BR.excludedApplications);
+ notifyPropertyChanged(BR.excludedApplicationsCount);
}
public void setListenPort(final String listenPort) {