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

Commit 415ab1ab authored by Filip Gruszczynski's avatar Filip Gruszczynski
Browse files

Provide size hint inside UNSPECIFIED measure spec.

Change-Id: I1802ea0f6a94af0a87be81abd5fd1adfb758e854
parent 02bc1fe6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5727,12 +5727,12 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
            } else if (childDimension == LayoutParams.MATCH_PARENT) {
                // Child wants to be our size... find out how big it should
                // be
                resultSize = 0;
                resultSize = size;
                resultMode = MeasureSpec.UNSPECIFIED;
            } else if (childDimension == LayoutParams.WRAP_CONTENT) {
                // Child wants to determine its own size.... find out how
                // big it should be
                resultSize = 0;
                resultSize = size;
                resultMode = MeasureSpec.UNSPECIFIED;
            }
            break;