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 104835 c085464581b6a4164e9d5ecea4a2819c58802da3
parent 104834 54efd2cc7c855652dbbbb24715caee209d741ae5
child 104836 e97453246c7d5bc636ad16c631b79d4e413bd324
push id1453
push usercpeterson@mozilla.com
push dateMon, 24 Sep 2012 22:49:39 +0000
treeherdermozilla-beta@c085464581b6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats, lsblakk
bugs792702
milestone16.0
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
@@ -138,17 +138,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;
         }