diff options
author | Jeff Brown <jeffbrown@android.com> | 2013-02-08 15:49:46 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-02-08 15:49:46 -0800 |
commit | 110fe9b303be527c30a8af95b6fb7afac12968b5 (patch) | |
tree | 62a042ce804d4a6c4f123df1429cab09d53c6e90 /core/java/android | |
parent | 4b71a472c0f254606e93b8f9f86f7df0e6dba522 (diff) | |
parent | fe1f3a1beff9f73f6a04bcc35239038a21bc38ff (diff) | |
download | frameworks_base-110fe9b303be527c30a8af95b6fb7afac12968b5.zip frameworks_base-110fe9b303be527c30a8af95b6fb7afac12968b5.tar.gz frameworks_base-110fe9b303be527c30a8af95b6fb7afac12968b5.tar.bz2 |
am fe1f3a1b: Merge "Fix ViewRootImpl to find missing focus using D-pad."
# By Ki-Hwan Lee
# Via Gerrit Code Review (1) and Ki-Hwan Lee (1)
* commit 'fe1f3a1beff9f73f6a04bcc35239038a21bc38ff':
Fix ViewRootImpl to find missing focus using D-pad.
Diffstat (limited to 'core/java/android')
-rw-r--r-- | core/java/android/view/ViewRootImpl.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index 58e6fbe..f2e49c9 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -3751,6 +3751,13 @@ public final class ViewRootImpl implements ViewParent, if (mView.dispatchUnhandledMove(focused, direction)) { return EVENT_HANDLED; } + } else { + // find the best view to give focus to in this non-touch-mode with no-focus + View v = focusSearch(null, direction); + if (v != null && v.requestFocus(direction)) { + finishInputEvent(q, true); + return; + } } } } |