Merge "Fix (another) measurement issue in ActionBarContainer" into lmp-dev

This commit is contained in:
Adam Powell
2014-08-22 21:20:22 +00:00
committed by Android (Google) Code Review

View File

@@ -276,8 +276,8 @@ public class ActionBarContainer extends FrameLayout {
continue;
}
final LayoutParams lp = (LayoutParams) child.getLayoutParams();
nonTabMaxHeight = isCollapsed(child) ? 0 :
child.getMeasuredHeight() + lp.topMargin + lp.bottomMargin;
nonTabMaxHeight = Math.max(nonTabMaxHeight, isCollapsed(child) ? 0 :
child.getMeasuredHeight() + lp.topMargin + lp.bottomMargin);
}
if (mTabContainer != null && mTabContainer.getVisibility() != GONE) {