diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-06 04:24:05 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-06 05:18:34 -0600 |
commit | 193de10972090338a721454503d3e6408eb76660 (patch) | |
tree | 8aa3054b39b4df0cb8f3c3d1a6e680c22240c8b0 /app/src/main/java/com/wireguard | |
parent | dbed7155d611071eae969559be67d75b2996d4a8 (diff) |
TunnelDetailFragment: Remove state text and last change
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'app/src/main/java/com/wireguard')
-rw-r--r-- | app/src/main/java/com/wireguard/android/model/Tunnel.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/app/src/main/java/com/wireguard/android/model/Tunnel.java b/app/src/main/java/com/wireguard/android/model/Tunnel.java index 25bb46df..8152381b 100644 --- a/app/src/main/java/com/wireguard/android/model/Tunnel.java +++ b/app/src/main/java/com/wireguard/android/model/Tunnel.java @@ -12,8 +12,6 @@ import com.wireguard.android.util.ExceptionLoggers; import com.wireguard.android.util.Keyed; import com.wireguard.config.Config; -import org.threeten.bp.Instant; - import java.util.Objects; import java.util.regex.Pattern; @@ -33,7 +31,6 @@ public class Tunnel extends BaseObservable implements Keyed<String> { private final ConfigStore configStore; private final String name; private Config config; - private Instant lastStateChange = Instant.EPOCH; private State state = State.UNKNOWN; private Statistics statistics; @@ -68,11 +65,6 @@ public class Tunnel extends BaseObservable implements Keyed<String> { } @Bindable - public Instant getLastStateChange() { - return lastStateChange; - } - - @Bindable public String getName() { return name; } @@ -106,10 +98,6 @@ public class Tunnel extends BaseObservable implements Keyed<String> { } private void onStateChanged(final State oldState, final State newState) { - if (oldState != State.UNKNOWN) { - lastStateChange = Instant.now(); - notifyPropertyChanged(BR.lastStateChange); - } if (newState != State.UP) setStatisticsInternal(null); } |