Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Part of fixing issue #6006757: Keyboard dismissal lags

Have launcher delay a little before rebuilding its layers, to give
the input system time to do the communication it needs with it before
blocked on that work.

Change-Id: Ib6f533a51c611b8c971c9ca2a1da8d53c8952b44
  • Loading branch information...
commit 98b69dc64f404436a244b97b7566257d67b12acc 1 parent fb314c7
Dianne Hackborn authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/com/android/launcher2/
7 src/com/android/launcher2/
@@ -578,7 +578,12 @@ public boolean onPreDraw() {
if (mFirstTime) {
mFirstTime = false;
} else {
+ // 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);
return true;
Please sign in to comment.
Something went wrong with that request. Please try again.