Merge "Stop focusing views before layout." into oc-dr1-dev

This commit is contained in:
Phil Weaver
2017-08-10 22:34:03 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
}
}