Skip to content

Commit ecbbfdd

Browse files
adampAndroid (Google) Code Review
authored andcommitted
Merge "Make ActionBar fail more cleanly when invalid heights are set" into jb-mr1-dev
2 parents baa6350 + 570470a commit ecbbfdd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/java/com/android/internal/widget/ActionBarView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
847847

848848
int contentWidth = MeasureSpec.getSize(widthMeasureSpec);
849849

850-
int maxHeight = mContentHeight > 0 ?
850+
int maxHeight = mContentHeight >= 0 ?
851851
mContentHeight : MeasureSpec.getSize(heightMeasureSpec);
852852

853853
final int verticalPadding = getPaddingTop() + getPaddingBottom();

core/res/res/values/attrs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5502,6 +5502,7 @@
55025502
</attr>
55035503
<!-- Options affecting how the action bar is displayed. -->
55045504
<attr name="displayOptions">
5505+
<flag name="none" value="0" />
55055506
<flag name="useLogo" value="0x1" />
55065507
<flag name="showHome" value="0x2" />
55075508
<flag name="homeAsUp" value="0x4" />

0 commit comments

Comments
 (0)