diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index eea692aa952a7..2b4015f9063e5 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -13284,7 +13284,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, // about in case nothing has focus. even if this specific view // isn't focusable, it may contain something that is, so let // the root view try to give this focus if nothing else does. - if ((mParent != null)) { + if ((mParent != null) && (mBottom > mTop) && (mRight > mLeft)) { mParent.focusableViewAvailable(this); } }