Merge "Fix ActionMenuView vertical alignment of items" into lmp-mr1-dev

This commit is contained in:
Chris Banes
2014-10-30 08:42:34 +00:00
committed by Android (Google) Code Review

View File

@@ -429,7 +429,7 @@ public class ActionMenuView extends LinearLayout implements MenuBuilder.ItemInvo
}
final int childCount = getChildCount();
final int midVertical = (top + bottom) / 2;
final int midVertical = (bottom - top) / 2;
final int dividerWidth = getDividerWidth();
int overflowWidth = 0;
int nonOverflowWidth = 0;