summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2014-06-24 16:53:03 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-06-24 16:53:03 +0000
commit03f20ba3b2cf55d337473a200a3fd300d15f4a69 (patch)
tree58e082f17ebaaca22be1f41cdb3a49da011a6fde
parent7bc272a11b701a32d2ed91277341c382cbd84aeb (diff)
parentdcc5e71b3fd0ae450241ad820a5797225973ce73 (diff)
downloadandroid_packages_apps_Trebuchet-03f20ba3b2cf55d337473a200a3fd300d15f4a69.tar.gz
android_packages_apps_Trebuchet-03f20ba3b2cf55d337473a200a3fd300d15f4a69.tar.bz2
android_packages_apps_Trebuchet-03f20ba3b2cf55d337473a200a3fd300d15f4a69.zip
am dcc5e71b: Fix issue where focus was sometimes missing when going to all apps with keyboard
* commit 'dcc5e71b3fd0ae450241ad820a5797225973ce73': Fix issue where focus was sometimes missing when going to all apps with keyboard
-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;