summaryrefslogtreecommitdiff
path: root/app/src/main/java/se
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-11-11 21:54:40 +0100
committercyBerta <cyberta@riseup.net>2021-11-11 21:54:40 +0100
commit0b687502d047253ca50b691c29336bc3e53a29d2 (patch)
treec45a50701d5b152195fac13fafe819f8a0e6ac36 /app/src/main/java/se
parent1657571812f6585bd2883c97d114f8d9861505c0 (diff)
fix snowflake on-/off state detection
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java6
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();