am cfa1a75b: Merge "Part of fixing issue #6006757: Keyboard dismissal lags" into ics-mr1

* commit 'cfa1a75bd4edb3e3a9d93c8b02ab6a1ecb74e79b':
  Part of fixing issue #6006757: Keyboard dismissal lags
This commit is contained in:
Justin Ho
2012-02-16 09:25:05 -08:00
committed by Android Git Automerger

View File

@@ -578,7 +578,12 @@ public final class Launcher extends Activity
if (mFirstTime) {
mFirstTime = false;
} else {
workspace.post(mBuildLayersRunnable);
// We delay the layer building a bit in order to give
// other message processing a time to run. In particular
// this avoids a delay in hiding the IME if it was
// currently shown, because doing that may involve
// some communication back with the app.
workspace.postDelayed(mBuildLayersRunnable, 500);
observer.removeOnPreDrawListener(this);
}
return true;