[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [orbot/master] simple notification of bridge settings via URL
commit 278997de389a4db7c4ed9caac47b68f890cee028
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
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();
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits