a couple tweaks to make the long press feel more responsive
This commit is contained in:
parent
25a6bb63b2
commit
13d29878f9
|
@ -126,6 +126,7 @@ public class OrbotMainActivity extends Activity
|
||||||
}
|
}
|
||||||
|
|
||||||
private void stopTor() {
|
private void stopTor() {
|
||||||
|
imgStatus.setImageResource(R.drawable.torstarting);
|
||||||
Intent torService = new Intent(this, TorService.class);
|
Intent torService = new Intent(this, TorService.class);
|
||||||
stopService(torService);
|
stopService(torService);
|
||||||
}
|
}
|
||||||
|
@ -1118,7 +1119,6 @@ public class OrbotMainActivity extends Activity
|
||||||
private void startTor () throws RemoteException
|
private void startTor () throws RemoteException
|
||||||
{
|
{
|
||||||
Log.i("OrbotMainActivity", "startTor");
|
Log.i("OrbotMainActivity", "startTor");
|
||||||
sendIntentToService (TorServiceConstants.CMD_START);
|
|
||||||
|
|
||||||
mTxtOrbotLog.setText("");
|
mTxtOrbotLog.setText("");
|
||||||
|
|
||||||
|
@ -1127,6 +1127,8 @@ public class OrbotMainActivity extends Activity
|
||||||
imgStatus.setImageResource(R.drawable.torstarting);
|
imgStatus.setImageResource(R.drawable.torstarting);
|
||||||
lblStatus.setText(getString(R.string.status_starting_up));
|
lblStatus.setText(getString(R.string.status_starting_up));
|
||||||
|
|
||||||
|
sendIntentToService(TorServiceConstants.CMD_START);
|
||||||
|
|
||||||
//we send a message here to the progressDialog i believe, but we can clarify that shortly
|
//we send a message here to the progressDialog i believe, but we can clarify that shortly
|
||||||
Message msg = mStatusUpdateHandler.obtainMessage(STATUS_UPDATE);
|
Message msg = mStatusUpdateHandler.obtainMessage(STATUS_UPDATE);
|
||||||
msg.obj = getString(R.string.status_starting_up);
|
msg.obj = getString(R.string.status_starting_up);
|
||||||
|
|
Loading…
Reference in New Issue