diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 2646d1c4f528c..47e8b58e8e327 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -13281,7 +13281,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); } }