[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] fix for:



commit 54e2e5e37297d075cd76f53fdf23ada63a7e8e88
Author: arrase <arrase@xxxxxxxxx>
Date:   Tue Nov 29 21:04:41 2016 +0100

    fix for:
    
    https://github.com/n8fr8/orbot/issues/63
---
 app/src/main/java/org/torproject/android/OrbotMainActivity.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/src/main/java/org/torproject/android/OrbotMainActivity.java b/app/src/main/java/org/torproject/android/OrbotMainActivity.java
index 7706c0f..551fb6e 100644
--- a/app/src/main/java/org/torproject/android/OrbotMainActivity.java
+++ b/app/src/main/java/org/torproject/android/OrbotMainActivity.java
@@ -105,6 +105,7 @@ public class OrbotMainActivity extends AppCompatActivity
     /* Some tracking bits */
     private String torStatus = TorServiceConstants.STATUS_OFF; //latest status reported from the tor service
     private Intent lastStatusIntent;  // the last ACTION_STATUS Intent received
+	private Boolean isFirstRun = true;
 
     private SharedPreferences mPrefs = null;
 
@@ -1301,8 +1302,9 @@ public class OrbotMainActivity extends AppCompatActivity
         	String newTorStatus = msg.getData().getString("status");
         	String log = (String)msg.obj;
         	
-        	if (torStatus == null && newTorStatus != null) //first time status
+        	if (isFirstRun && newTorStatus != null) //first time status
         	{
+				isFirstRun = false;
         		torStatus = newTorStatus;
         		findViewById(R.id.frameMain).setVisibility(View.VISIBLE);
         		updateStatus(log);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits