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 4846cb7c60
commit ed3e03b515

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() {