summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-02-15 18:29:29 -0800
committerDianne Hackborn <hackbod@google.com>2012-02-15 18:29:29 -0800
commit98b69dc64f404436a244b97b7566257d67b12acc (patch)
tree1cc7c0e1f9af85c424fab8f61c15311c76879aa5 /src
parentfb314c7782682b75b1be47beac0d5f2bcef2584c (diff)
downloadandroid_packages_apps_Trebuchet-98b69dc64f404436a244b97b7566257d67b12acc.tar.gz
android_packages_apps_Trebuchet-98b69dc64f404436a244b97b7566257d67b12acc.tar.bz2
android_packages_apps_Trebuchet-98b69dc64f404436a244b97b7566257d67b12acc.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/Launcher.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index a9d794da8..8e074b53f 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -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;