Merge "Revert "Fix for layout parameter validation bug in GridLayout."" into jb-dev

This commit is contained in:
Jim Miller
2012-05-02 15:59:27 -07:00
committed by Android (Google) Code Review

View File

@@ -658,7 +658,7 @@ public class GridLayout extends ViewGroup {
private void validateLayoutParams() {
final boolean horizontal = (orientation == HORIZONTAL);
final Axis axis = horizontal ? horizontalAxis : verticalAxis;
final int count = max(0, axis.getCount()); // Handle negative values, including UNDEFINED
final int count = (axis.definedCount != UNDEFINED) ? axis.definedCount : 0;
int major = 0;
int minor = 0;