Merge "Return early when checking divider before child zero."

This commit is contained in:
Jean-Baptiste Queru
2012-08-08 13:20:07 -07:00
committed by android code review

View File

@@ -524,6 +524,9 @@ public class ActionMenuView extends LinearLayout implements MenuBuilder.ItemInvo
@Override
protected boolean hasDividerBeforeChildAt(int childIndex) {
if (childIndex == 0) {
return false;
}
final View childBefore = getChildAt(childIndex - 1);
final View child = getChildAt(childIndex);
boolean result = false;