From adf7c09f0e78bc0ea6fc60cc6430fff7140beb95 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 17 Jun 2015 11:15:31 -0400 Subject: [PATCH] remove delayed handling of Intents in OrbotMainActivity This is a leftover bit from the old structure, it should no longer be needed and it causes the status updates to be noticeably delayed so when OrbotMainActivity is started after being killed, it flashes OFF then ON. --- src/org/torproject/android/OrbotMainActivity.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/org/torproject/android/OrbotMainActivity.java b/src/org/torproject/android/OrbotMainActivity.java index d0d088ba..15af8b95 100644 --- a/src/org/torproject/android/OrbotMainActivity.java +++ b/src/org/torproject/android/OrbotMainActivity.java @@ -1010,18 +1010,7 @@ public class OrbotMainActivity extends Activity mBtnBridges.setChecked(Prefs.bridgesEnabled()); } - mStatusUpdateHandler.postDelayed(new Runnable () - { - public void run () - { - - handleIntents(); - - } - } - , 500); - - + handleIntents(); } AlertDialog aDialog = null;