Loading core/java/android/view/View.java +3 −1 Original line number Diff line number Diff line Loading @@ -6409,7 +6409,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, if ((mViewFlags & VISIBILITY_MASK) != VISIBLE) { return false; } return allowAutoFocus ? getFocusable() != NOT_FOCUSABLE : getFocusable() == FOCUSABLE; return (allowAutoFocus ? getFocusable() != NOT_FOCUSABLE : getFocusable() == FOCUSABLE) && isFocusable(); } /** Loading core/java/android/view/ViewGroup.java +2 −1 Original line number Diff line number Diff line Loading @@ -1114,7 +1114,8 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager } // TODO This should probably be super.hasFocusable, but that would change behavior if (allowAutoFocus ? getFocusable() != NOT_FOCUSABLE : getFocusable() == FOCUSABLE) { if ((allowAutoFocus ? getFocusable() != NOT_FOCUSABLE : getFocusable() == FOCUSABLE) && isFocusable()) { return true; } Loading Loading
core/java/android/view/View.java +3 −1 Original line number Diff line number Diff line Loading @@ -6409,7 +6409,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, if ((mViewFlags & VISIBILITY_MASK) != VISIBLE) { return false; } return allowAutoFocus ? getFocusable() != NOT_FOCUSABLE : getFocusable() == FOCUSABLE; return (allowAutoFocus ? getFocusable() != NOT_FOCUSABLE : getFocusable() == FOCUSABLE) && isFocusable(); } /** Loading
core/java/android/view/ViewGroup.java +2 −1 Original line number Diff line number Diff line Loading @@ -1114,7 +1114,8 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager } // TODO This should probably be super.hasFocusable, but that would change behavior if (allowAutoFocus ? getFocusable() != NOT_FOCUSABLE : getFocusable() == FOCUSABLE) { if ((allowAutoFocus ? getFocusable() != NOT_FOCUSABLE : getFocusable() == FOCUSABLE) && isFocusable()) { return true; } Loading