Merge "Make ActionBar fail more cleanly when invalid heights are set" into jb-mr1-dev

This commit is contained in:
Adam Powell
2012-08-06 17:04:24 -07:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 1 deletions

View File

@ -847,7 +847,7 @@ public class ActionBarView extends AbsActionBarView {
int contentWidth = MeasureSpec.getSize(widthMeasureSpec);
int maxHeight = mContentHeight > 0 ?
int maxHeight = mContentHeight >= 0 ?
mContentHeight : MeasureSpec.getSize(heightMeasureSpec);
final int verticalPadding = getPaddingTop() + getPaddingBottom();

View File

@ -5502,6 +5502,7 @@
</attr>
<!-- Options affecting how the action bar is displayed. -->
<attr name="displayOptions">
<flag name="none" value="0" />
<flag name="useLogo" value="0x1" />
<flag name="showHome" value="0x2" />
<flag name="homeAsUp" value="0x4" />