We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3e09cc9 + 4a52688 commit e0435a6Copy full SHA for e0435a6
core/java/android/view/View.java
@@ -13614,13 +13614,12 @@ public void requestLayout() {
13614
mPrivateFlags |= FORCE_LAYOUT;
13615
mPrivateFlags |= INVALIDATED;
13616
13617
- if (mParent != null) {
13618
- if (mLayoutParams != null) {
13619
- mLayoutParams.onResolveLayoutDirection(getResolvedLayoutDirection());
13620
- }
13621
- if (!mParent.isLayoutRequested()) {
13622
- mParent.requestLayout();
13623
+ if (mLayoutParams != null) {
+ mLayoutParams.onResolveLayoutDirection(getResolvedLayoutDirection());
+ }
+
+ if (mParent != null && !mParent.isLayoutRequested()) {
+ mParent.requestLayout();
13624
}
13625
13626
0 commit comments