am b1825fea: Merge "Throw IAE on invalid measure spec size" into mnc-dev
* commit 'b1825feac000e8d7999b0b956f104e989ea34d05': Throw IAE on invalid measure spec size
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user