diff options
| author | Svetoslav Ganov <svetoslavganov@google.com> | 2012-05-21 17:49:09 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-05-21 17:49:09 -0700 |
| commit | f40628645df750991ced8dde803dd57225fca04f (patch) | |
| tree | 32acbc265364a9bb9b44f73974024550f594a877 /core/java/android/view/ViewRootImpl.java | |
| parent | 493743e0137f34939dd7f3674e9102942ef7e4e8 (diff) | |
| parent | 525ae2075cf96d3a2ac67cd3a662069fd579f42d (diff) | |
Merge "Accessibility focus and input focus do not sync - part 2" into jb-dev
Diffstat (limited to 'core/java/android/view/ViewRootImpl.java')
| -rw-r--r-- | core/java/android/view/ViewRootImpl.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index 512507b827f7..c9a41adb8c55 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -2895,20 +2895,6 @@ public final class ViewRootImpl implements ViewParent, if (hasWindowFocus) { mView.sendAccessibilityEvent( AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED); - // Give accessibility focus to the view that has input - // focus if such, otherwise to the first one. - if (mView instanceof ViewGroup) { - ViewGroup viewGroup = (ViewGroup) mView; - View focused = viewGroup.findFocus(); - if (focused != null) { - focused.requestAccessibilityFocus(); - } - } - // There is no accessibility focus, despite our effort - // above, now just give it to the first view. - if (mAccessibilityFocusedHost == null) { - mView.requestAccessibilityFocus(); - } } } } |
