[tor-commits] [orbot/master] use getbridge email instead of web, as it makes more sense

n8fr8 at torproject.org n8fr8 at torproject.org
Fri Apr 3 17:04:08 UTC 2015


commit b1d46e22916b58dfdb976290f0083b3289dd7be0
Author: Nathan Freitas <nathan at freitas.net>
Date:   Thu Apr 2 23:37:43 2015 -0400

    use getbridge email instead of web, as it makes more sense
    for users in censored/filtered locations to send an email than to
    access *.torproject.org through their browser. Also, even if they
    can connect, the browser UI is not great.
---
 src/org/torproject/android/OrbotMainActivity.java |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/org/torproject/android/OrbotMainActivity.java b/src/org/torproject/android/OrbotMainActivity.java
index 62e666e..088f7fb 100644
--- a/src/org/torproject/android/OrbotMainActivity.java
+++ b/src/org/torproject/android/OrbotMainActivity.java
@@ -866,8 +866,9 @@ public class OrbotMainActivity extends Activity implements OrbotConstants, OnLon
 				@Override
 				public void onClick(DialogInterface dialog, int which) {
 					
-					openBrowser(URL_TOR_BRIDGES);
+					//openBrowser(URL_TOR_BRIDGES);
 	
+					sendGetBridgeEmail();
 				}
 	
 	       	 
@@ -902,6 +903,16 @@ public class OrbotMainActivity extends Activity implements OrbotConstants, OnLon
         
     }
     
+    private void sendGetBridgeEmail ()
+    {
+    	Intent intent = new Intent(Intent.ACTION_SEND);
+    	intent.setType("message/rfc822");
+		intent.putExtra(Intent.EXTRA_EMAIL  , new String[]{"bridges at torproject.org"});
+    	intent.putExtra(Intent.EXTRA_SUBJECT, "Tor Bridge Request");
+
+    	startActivity(Intent.createChooser(intent, "Send Email"));
+    }
+    
     private void enableBridges (boolean enable)
     {
 





More information about the tor-commits mailing list