[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] onResume() must finish before we call some APIs



commit 611558218d94584e1ef57ff7c387647d1755c402
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
Date:   Mon Nov 24 13:11:14 2014 -0500

    onResume() must finish before we call some APIs
---
 src/org/torproject/android/Orbot.java |   15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/org/torproject/android/Orbot.java b/src/org/torproject/android/Orbot.java
index d1c111a..7f4724c 100644
--- a/src/org/torproject/android/Orbot.java
+++ b/src/org/torproject/android/Orbot.java
@@ -902,11 +902,20 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic
 	protected void onResume() {
 		super.onResume();
 
-		setLocale();
+		mHandler.postDelayed(new Runnable ()
+		{
+			public void run ()
+			{
+
+				setLocale();
 		
-		handleIntents();
+				handleIntents();
 
-           
+			}
+		}
+		, 500);
+		
+		
 	}
 
 	AlertDialog aDialog = null;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits