[tor-commits] [orbot/master] remove delayed handling of Intents in OrbotMainActivity

n8fr8 at torproject.org n8fr8 at torproject.org
Thu Jun 25 14:59:59 UTC 2015


commit adf7c09f0e78bc0ea6fc60cc6430fff7140beb95
Author: Hans-Christoph Steiner <hans at eds.org>
Date:   Wed Jun 17 11:15:31 2015 -0400

    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 d0d088b..15af8b9 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;





More information about the tor-commits mailing list