https://github.com/n8fr8/orbot/issues/63
This commit is contained in:
arrase 2016-11-29 21:04:41 +01:00
parent ff61d66bcf
commit 54e2e5e372
1 changed files with 3 additions and 1 deletions

View File

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