diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-05 21:34:50 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-06 16:28:46 +0200 |
commit | 124f186983f95648867ba1fdd2bec1e098ae95ba (patch) | |
tree | cb23beeb6a7ccdad75eeb0c56b5317ef9aa18d58 /app/src/main/java/com/wireguard/config | |
parent | 500a705531a3210aa98b17b77085cf1ea86c274d (diff) |
TunnelEditor: fix nits
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java/com/wireguard/config')
-rw-r--r-- | app/src/main/java/com/wireguard/config/Interface.java | 6 |
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) { |