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 107661 dbed92805ae76cad9c03bfa4ffd2c0c25bf6be1b
parent 107660 904a524661671619386b0c7a06c648f35e807e0d
child 107674 494304d495d82cf1929ca8d56a96ae4aef50d5d4
push id15163
push usercpeterson@mozilla.com
push dateThu, 20 Sep 2012 23:54:14 +0000
treeherdermozilla-inbound@dbed92805ae7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs792702
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;
         }