Skip to content

Commit 4a52688

Browse files
author
Fabrice Di Meglio
committed
Fix layout params resolution
- dont need to check if any parent as getResolvedLayoutDirection() is handling this case Change-Id: I915b4a72e38d072005e47d3c5a3f63febbef6e60
1 parent 58a40a3 commit 4a52688

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
@@ -13481,13 +13481,12 @@ public void requestLayout() {
1348113481
mPrivateFlags |= FORCE_LAYOUT;
1348213482
mPrivateFlags |= INVALIDATED;
1348313483

13484-
if (mParent != null) {
13485-
if (mLayoutParams != null) {
13486-
mLayoutParams.onResolveLayoutDirection(getResolvedLayoutDirection());
13487-
}
13488-
if (!mParent.isLayoutRequested()) {
13489-
mParent.requestLayout();
13490-
}
13484+
if (mLayoutParams != null) {
13485+
mLayoutParams.onResolveLayoutDirection(getResolvedLayoutDirection());
13486+
}
13487+
13488+
if (mParent != null && !mParent.isLayoutRequested()) {
13489+
mParent.requestLayout();
1349113490
}
1349213491
}
1349313492

0 commit comments

Comments
 (0)