diff options
author | cyBerta <cyberta@riseup.net> | 2021-11-11 21:54:40 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-11-11 21:54:40 +0100 |
commit | 0b687502d047253ca50b691c29336bc3e53a29d2 (patch) | |
tree | c45a50701d5b152195fac13fafe819f8a0e6ac36 | |
parent | 1657571812f6585bd2883c97d114f8d9861505c0 (diff) |
fix snowflake on-/off state detection
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java b/app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java index 2527ce83..ade22e6b 100644 --- a/app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java +++ b/app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java @@ -114,9 +114,11 @@ public class TorStatusObservable extends Observable { getInstance().torNotificationManager.buildTorNotification(context, getStringForCurrentStatus(context), getNotificationLog(), getBootstrapProgress()); } //TODO: implement proper state signalling in IPtProxy - if (SNOWFLAKE_STARTED.equals(message)) { + if (SNOWFLAKE_STARTED.equals(message.trim())) { + Log.d(TAG, "snowflakeStatus ON"); getInstance().snowflakeStatus = SnowflakeStatus.ON; - } else if (SNOWFLAKE_STOPPED.equals(message)) { + } else if (SNOWFLAKE_STOPPED.equals(message.trim())) { + Log.d(TAG, "snowflakeStatus OFF"); getInstance().snowflakeStatus = SnowflakeStatus.OFF; } instance.setChanged(); |