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 | 3cb110861be6cee1be718fc4b6410b226ebae8de (patch) | |
tree | 8aa3054b39b4df0cb8f3c3d1a6e680c22240c8b0 /app/src/main/java/com | |
parent | 3412e34a8ec5629083603a14b745086dfd7ba9b3 (diff) |
TunnelDetailFragment: Remove state text and last change
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'app/src/main/java/com')
-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); } |