parent
ff61d66bcf
commit
54e2e5e372
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue