Permalink
Browse files

Merge "Part of fixing issue #6006757: Keyboard dismissal lags" into i…

…cs-mr1
  • Loading branch information...
2 parents 2a5bc11 + 98b69dc commit cfa1a75bd4edb3e3a9d93c8b02ab6a1ecb74e79b Justin Ho committed with Android (Google) Code Review Feb 16, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/com/android/launcher2/Launcher.java
@@ -578,7 +578,12 @@ public boolean onPreDraw() {
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;

0 comments on commit cfa1a75

Please sign in to comment.