summaryrefslogtreecommitdiffstats
path: root/core/java/android
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@android.com>2013-02-08 15:49:46 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-02-08 15:49:46 -0800
commit110fe9b303be527c30a8af95b6fb7afac12968b5 (patch)
tree62a042ce804d4a6c4f123df1429cab09d53c6e90 /core/java/android
parent4b71a472c0f254606e93b8f9f86f7df0e6dba522 (diff)
parentfe1f3a1beff9f73f6a04bcc35239038a21bc38ff (diff)
downloadframeworks_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.java7
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;
+ }
}
}
}