Fix a lint warning in support-cardview.
Bug: 62349821
Test: None
Change-Id: I1897e9e73588c43d8d452fe2b3107835a6b37bd3
diff --git a/v7/cardview/src/android/support/v7/widget/CardView.java b/v7/cardview/src/android/support/v7/widget/CardView.java
index fab9453..3df45d9 100644
--- a/v7/cardview/src/android/support/v7/widget/CardView.java
+++ b/v7/cardview/src/android/support/v7/widget/CardView.java
@@ -196,6 +196,9 @@
widthMeasureSpec = MeasureSpec.makeMeasureSpec(Math.max(minWidth,
MeasureSpec.getSize(widthMeasureSpec)), widthMode);
break;
+ case MeasureSpec.UNSPECIFIED:
+ // Do nothing
+ break;
}
final int heightMode = MeasureSpec.getMode(heightMeasureSpec);
@@ -206,6 +209,9 @@
heightMeasureSpec = MeasureSpec.makeMeasureSpec(Math.max(minHeight,
MeasureSpec.getSize(heightMeasureSpec)), heightMode);
break;
+ case MeasureSpec.UNSPECIFIED:
+ // Do nothing
+ break;
}
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
} else {