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

This commit is contained in:
Justin Ho authored and Android (Google) Code Review committed 2012-02-16 09:22:56 -08:00
commit cfa1a75bd4
1 file changed
+6 -1
+6 -1
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;