Skip to content

Commit e0435a6

Browse files
Fabrice Di MeglioAndroid (Google) Code Review
authored andcommitted
Merge "Fix layout params resolution"
2 parents 3e09cc9 + 4a52688 commit e0435a6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

core/java/android/view/View.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13614,13 +13614,12 @@ public void requestLayout() {
1361413614
mPrivateFlags |= FORCE_LAYOUT;
1361513615
mPrivateFlags |= INVALIDATED;
1361613616

13617-
if (mParent != null) {
13618-
if (mLayoutParams != null) {
13619-
mLayoutParams.onResolveLayoutDirection(getResolvedLayoutDirection());
13620-
}
13621-
if (!mParent.isLayoutRequested()) {
13622-
mParent.requestLayout();
13623-
}
13617+
if (mLayoutParams != null) {
13618+
mLayoutParams.onResolveLayoutDirection(getResolvedLayoutDirection());
13619+
}
13620+
13621+
if (mParent != null && !mParent.isLayoutRequested()) {
13622+
mParent.requestLayout();
1362413623
}
1362513624
}
1362613625

0 commit comments

Comments
 (0)