diff options
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/view/View.java | 9 | ||||
| -rw-r--r-- | core/java/android/view/ViewRootImpl.java | 14 |
2 files changed, 0 insertions, 23 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index df64e34..d438485 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -6212,15 +6212,6 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal // Clear the text navigation state. setAccessibilityCursorPosition(-1); - - // Try to move accessibility focus to the input focus. - View rootView = getRootView(); - if (rootView != null) { - View inputFocus = rootView.findFocus(); - if (inputFocus != null) { - inputFocus.requestAccessibilityFocus(); - } - } } } diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index d9e3545..0deb59f 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -2993,20 +2993,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(); - } } } } |
