commit f1e572e8d27305c3343239762869253bcb5bd9ea
Author: n8fr8 <nathan(a)guardianproject.info>
Date: Tue Jul 9 14:27:40 2019 -0400
use standard string keys for intent values
---
app/src/main/java/org/torproject/android/OrbotMainActivity.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/src/main/java/org/torproject/android/OrbotMainActivity.java b/app/src/main/java/org/torproject/android/OrbotMainActivity.java
index 0dad0520..643aab95 100644
--- a/app/src/main/java/org/torproject/android/OrbotMainActivity.java
+++ b/app/src/main/java/org/torproject/android/OrbotMainActivity.java
@@ -273,8 +273,8 @@ public class OrbotMainActivity extends AppCompatActivity
else if (action.equals(TorServiceConstants.LOCAL_ACTION_PORTS)) {
Message msg = mStatusUpdateHandler.obtainMessage(MESSAGE_PORTS);
- msg.getData().putInt("socks",intent.getIntExtra("socks",-1));
- msg.getData().putInt("http",intent.getIntExtra("http",-1));
+ msg.getData().putInt("socks",intent.getIntExtra(TorService.EXTRA_SOCKS_PROXY_PORT,-1));
+ msg.getData().putInt("http",intent.getIntExtra(TorService.EXTRA_HTTP_PROXY_PORT,-1));
mStatusUpdateHandler.sendMessage(msg);