Merge "Fix 2926276: Remove spurrious warning about unspecified measurespec."
This commit is contained in:
committed by
Android (Google) Code Review
commit
385df2c7a5
@@ -474,10 +474,13 @@ public class SlidingTab extends ViewGroup {
|
||||
int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec);
|
||||
int heightSpecSize = MeasureSpec.getSize(heightMeasureSpec);
|
||||
|
||||
if (widthSpecMode == MeasureSpec.UNSPECIFIED || heightSpecMode == MeasureSpec.UNSPECIFIED) {
|
||||
Log.e("SlidingTab", "SlidingTab cannot have UNSPECIFIED MeasureSpec"
|
||||
+"(wspec=" + widthSpecMode + ", hspec=" + heightSpecMode + ")",
|
||||
new RuntimeException(LOG_TAG + "stack:"));
|
||||
if (DBG) {
|
||||
if (widthSpecMode == MeasureSpec.UNSPECIFIED
|
||||
|| heightSpecMode == MeasureSpec.UNSPECIFIED) {
|
||||
Log.e("SlidingTab", "SlidingTab cannot have UNSPECIFIED MeasureSpec"
|
||||
+"(wspec=" + widthSpecMode + ", hspec=" + heightSpecMode + ")",
|
||||
new RuntimeException(LOG_TAG + "stack:"));
|
||||
}
|
||||
}
|
||||
|
||||
mLeftSlider.measure();
|
||||
|
||||
Reference in New Issue
Block a user