From 611558218d94584e1ef57ff7c387647d1755c402 Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Mon, 24 Nov 2014 13:11:14 -0500 Subject: [PATCH] onResume() must finish before we call some APIs --- src/org/torproject/android/Orbot.java | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/org/torproject/android/Orbot.java b/src/org/torproject/android/Orbot.java index d1c111ad..7f4724c0 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(); - - handleIntents(); + mHandler.postDelayed(new Runnable () + { + public void run () + { - + setLocale(); + + handleIntents(); + + } + } + , 500); + + } AlertDialog aDialog = null;