[tor-commits] [orbot/master] simple notification of bridge settings via URL
n8fr8 at torproject.org
n8fr8 at torproject.org
Thu May 8 13:56:29 UTC 2014
commit 278997de389a4db7c4ed9caac47b68f890cee028
Author: Nathan Freitas <nathan at freitas.net>
Date: Thu May 8 09:54:48 2014 -0400
simple notification of bridge settings via URL
---
src/org/torproject/android/Orbot.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/org/torproject/android/Orbot.java b/src/org/torproject/android/Orbot.java
index e7a491f..94300d1 100644
--- a/src/org/torproject/android/Orbot.java
+++ b/src/org/torproject/android/Orbot.java
@@ -613,10 +613,12 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic
{
if (urlString.toLowerCase().startsWith("bridge://"))
+
{
String newBridgeValue = urlString.substring(9); //remove the bridge protocol piece
newBridgeValue = URLDecoder.decode(newBridgeValue); //decode the value here
-
+
+ showAlert("Bridges Updated","Restart Orbot to use this bridge: " + newBridgeValue,false);
SharedPreferences mPrefs = TorServiceUtils.getSharedPrefs(getApplicationContext());
Editor pEdit = mPrefs.edit();
More information about the tor-commits
mailing list