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

Commit b1825fea authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Throw IAE on invalid measure spec size" into mnc-dev

parents fcaed606 ac6cfb32
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -21041,6 +21041,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            if (sUseBrokenMakeMeasureSpec) {
                return size + mode;
            } else {
                if (size < 0) {
                    throw new IllegalArgumentException("Measure spec size must be >= 0");
                }
                return (size & ~MODE_MASK) | (mode & MODE_MASK);
            }
        }