diff options
| author | 2017-08-10 22:44:39 +0000 | |
|---|---|---|
| committer | 2017-08-10 22:44:39 +0000 | |
| commit | 34f79a67ee5b0a232dc720be42bbc708c3f50401 (patch) | |
| tree | 5a4d62bb3a135311ea1ed18a1732405083a4dcda | |
| parent | eb43cdbc2e1187667a51cf21daac9e79e3678114 (diff) | |
| parent | a5dab05b6170ef29ec1c2118dcc00cdf5e5fc409 (diff) | |
Merge "Stop focusing views before layout." into oc-dr1-dev
am: a5dab05b61
Change-Id: I31f4ce541ac56887549a654b5e313e1f361152c3
| -rw-r--r-- | core/java/android/view/View.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index eea692aa952a..2b4015f9063e 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); } } |