summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2014-06-23 15:38:55 -0400
committerAdam Cohen <adamcohen@google.com>2014-06-23 15:48:15 -0400
commitdcc5e71b3fd0ae450241ad820a5797225973ce73 (patch)
tree00b27981c2954a6ca7c7d617419dd2a9f955faaa /src
parentdb78dc8a0aeac2e18c995ed5b7e92b963fca18e5 (diff)
downloadandroid_packages_apps_Trebuchet-dcc5e71b3fd0ae450241ad820a5797225973ce73.tar.gz
android_packages_apps_Trebuchet-dcc5e71b3fd0ae450241ad820a5797225973ce73.tar.bz2
android_packages_apps_Trebuchet-dcc5e71b3fd0ae450241ad820a5797225973ce73.zip
Fix issue where focus was sometimes missing when going to all apps with keyboard
issue 15407977 Change-Id: I806c4f3d4c5951e4caa7eddaff366a68585f1cd9
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/Launcher.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index ad501a31c..f8c9f7b38 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -3420,7 +3420,13 @@ public class Launcher extends Activity
mAppsCustomizeTabHost.reset();
}
showAppsCustomizeHelper(animated, false, contentType);
- mAppsCustomizeTabHost.requestFocus();
+ mAppsCustomizeTabHost.post(new Runnable() {
+ @Override
+ public void run() {
+ // We post this in-case the all apps view isn't yet constructed.
+ mAppsCustomizeTabHost.requestFocus();
+ }
+ });
// Change the state *after* we've called all the transition code
mState = State.APPS_CUSTOMIZE;