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

am: a5dab05b61

Change-Id: I31f4ce541ac56887549a654b5e313e1f361152c3
This commit is contained in:
Phil Weaver
2017-08-10 22:44:39 +00:00
committed by android-build-merger

View File

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