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

Commit 0ca02512 authored by Alan Viverette's avatar Alan Viverette Committed by Android Git Automerger
Browse files

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

* commit 'b1825fea':
  Throw IAE on invalid measure spec size
parents 1e7b818d b1825fea
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);
            }
        }