bug 710328 - null pointer when attaching android idle handler r=mfinkle a=java-only

This commit is contained in:
Brad Lassey 2011-12-13 17:53:06 -05:00
parent 9621783f9f
commit b45af436d9

View File

@ -902,7 +902,11 @@ abstract public class GeckoApp
setLaunchState(GeckoApp.LaunchState.GeckoRunning);
GeckoAppShell.sendPendingEventsToGecko();
connectGeckoLayerClient();
Looper.myQueue().addIdleHandler(new UpdateIdleHandler());
GeckoAppShell.getHandler().post(new Runnable() {
public void run() {
Looper.myQueue().addIdleHandler(new UpdateIdleHandler());
}
});
} else if (event.equals("ToggleChrome:Hide")) {
mMainHandler.post(new Runnable() {
public void run() {