Fix issue where focus was sometimes missing when going to all apps with keyboard

issue 15407977

Change-Id: I806c4f3d4c5951e4caa7eddaff366a68585f1cd9
This commit is contained in:
Adam Cohen
2014-06-23 15:38:55 -04:00
parent db78dc8a0a
commit dcc5e71b3f

View File

@@ -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;