Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a526885 authored by Fabrice Di Meglio's avatar Fabrice Di Meglio
Browse files

Fix layout params resolution

- dont need to check if any parent as getResolvedLayoutDirection() is handling this case

Change-Id: I915b4a72e38d072005e47d3c5a3f63febbef6e60
parent 58a40a3e
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -13481,15 +13481,14 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
        mPrivateFlags |= FORCE_LAYOUT;
        mPrivateFlags |= INVALIDATED;
        if (mParent != null) {
        if (mLayoutParams != null) {
            mLayoutParams.onResolveLayoutDirection(getResolvedLayoutDirection());
        }
            if (!mParent.isLayoutRequested()) {
        if (mParent != null && !mParent.isLayoutRequested()) {
            mParent.requestLayout();
        }
    }
    }
    /**
     * Forces this view to be laid out during the next layout pass.