[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [orbot/master] move v3 onion name status to a "local action" instead
commit ac3d1bafb69ca87ba0b2d843b21bba7ce8721820
Author: n8fr8 <nathan@xxxxxxxxxxxxxxxxxxxx>
Date: Mon Dec 20 14:55:10 2021 -0500
move v3 onion name status to a "local action" instead
---
.../src/main/java/org/torproject/android/service/OrbotService.java | 5 ++++-
.../java/org/torproject/android/service/TorServiceConstants.java | 3 +--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java b/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java
index 49e3240a..5fd05409 100644
--- a/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java
+++ b/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java
@@ -763,7 +763,10 @@ public class OrbotService extends VpnService implements TorServiceConstants, Orb
status, perhaps just adding it as an extra to the normal Intent callback...
*/
String oldStatus = mCurrentStatus;
- sendCallbackStatus(STATUS_V3_NAMES_UPDATED);
+ Intent intent = new Intent(LOCAL_ACTION_V3_NAMES_UPDATED);
+ intent.putExtra(EXTRA_STATUS, mCurrentStatus);
+ LocalBroadcastManager.getInstance(this).sendBroadcast(intent);
+
mCurrentStatus = oldStatus;
} catch (Exception e) {
e.printStackTrace();
diff --git a/orbotservice/src/main/java/org/torproject/android/service/TorServiceConstants.java b/orbotservice/src/main/java/org/torproject/android/service/TorServiceConstants.java
index b9b410ad..ea89dbb1 100644
--- a/orbotservice/src/main/java/org/torproject/android/service/TorServiceConstants.java
+++ b/orbotservice/src/main/java/org/torproject/android/service/TorServiceConstants.java
@@ -75,14 +75,13 @@ public interface TorServiceConstants {
String LOCAL_ACTION_BANDWIDTH = "bandwidth";
String LOCAL_EXTRA_LOG = "log";
String LOCAL_ACTION_PORTS = "ports";
+ String LOCAL_ACTION_V3_NAMES_UPDATED = "V3_NAMES_UPDATED";
/**
* All tor-related services and daemons are stopped
*/
String STATUS_OFF = "OFF";
- String STATUS_V3_NAMES_UPDATED = "V3_NAMES_UPDATED";
-
/**
* All tor-related services and daemons have completed starting
*/
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits