Bug 792702 - Post FilePicker dialog to UI thread, not GeckoBackgroundThread. r=kats
authorChris Peterson <cpeterson@mozilla.com>
Thu, 20 Sep 2012 12:06:13 -0700
changeset 107808 dbed92805ae76cad9c03bfa4ffd2c0c25bf6be1b
parent 107807 904a524661671619386b0c7a06c648f35e807e0d
child 107809 494304d495d82cf1929ca8d56a96ae4aef50d5d4
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewerskats
bugs792702
milestone18.0a1
Bug 792702 - Post FilePicker dialog to UI thread, not GeckoBackgroundThread. r=kats
mobile/android/base/ActivityHandlerHelper.java
--- a/mobile/android/base/ActivityHandlerHelper.java
+++ b/mobile/android/base/ActivityHandlerHelper.java
@@ -143,17 +143,17 @@ class ActivityHandlerHelper {
             return null;
         }
 
         if (intents.size() == 1) {
             return intents.get(0);
         }
 
         Runnable filePicker = new FilePickerPromptRunnable(getFilePickerTitle(context, aMimeType), items);
-        GeckoAppShell.getHandler().post(filePicker);
+        GeckoAppShell.getMainHandler().post(filePicker);
 
         String promptServiceResult = "";
         try {
             promptServiceResult = PromptService.waitForReturn();
         } catch (InterruptedException e) {
             Log.e(LOGTAG, "showing prompt failed: ",  e);
             return null;
         }