Bug 792702 - Post FilePicker dialog to UI thread, not GeckoBackgroundThread. r=kats a=lsblakk
authorChris Peterson <cpeterson@mozilla.com>
Thu, 20 Sep 2012 12:06:13 -0700
changeset 106941 628cc50702f8879ef7821873b430e21f4a2e42d0
parent 106940 20a6963e30186d3def7b84d95d48c13d6a879eb4
child 106942 dcd3a21a35191d2fc9c4737e0ae106f003ed33cf
push id2151
push usercpeterson@mozilla.com
push dateMon, 24 Sep 2012 22:47:56 +0000
treeherdermozilla-aurora@628cc50702f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats, lsblakk
bugs792702
milestone17.0a2
Bug 792702 - Post FilePicker dialog to UI thread, not GeckoBackgroundThread. r=kats a=lsblakk
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;
         }