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

* commit '13ad79852f3e18bc1456bf93fe1afe030be65d51':
  Part of fixing issue #6006757: Keyboard dismissal lags
This commit is contained in:
Justin Ho 2012-02-16 09:27:17 -08:00 committed by Android Git Automerger
commit 7f3a92d4e2
1 changed files with 6 additions and 1 deletions

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;