include all status messages with "start" in them in the starting sequence

Before, the startup sequence showed "Orbot is starting..." for a long time,
then quickly showed the final tor percentage messages.  This adds a few
more messages to provide useful feedback.
This commit is contained in:
Hans-Christoph Steiner 2015-06-12 14:55:17 -04:00
parent ddaae1d941
commit f16394b7db
1 changed files with 4 additions and 1 deletions

View File

@ -1090,8 +1090,11 @@ public class OrbotMainActivity extends Activity
imgStatus.setImageResource(R.drawable.torstarting);
// only show Tor daemon's percentage complete messages
if (torServiceMsg.indexOf('%') != -1)
if (torServiceMsg.indexOf('%') != -1) {
lblStatus.setText(torServiceMsg);
} else if (torServiceMsg.contains("tart")) { // Start and start
lblStatus.setText(torServiceMsg);
}
mBtnBrowser.setEnabled(false);
} else if (torStatus == TorServiceConstants.STATUS_STOPPING) {