Merge "Return early when checking divider before child zero."
This commit is contained in:
@@ -524,6 +524,9 @@ public class ActionMenuView extends LinearLayout implements MenuBuilder.ItemInvo
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean hasDividerBeforeChildAt(int childIndex) {
|
protected boolean hasDividerBeforeChildAt(int childIndex) {
|
||||||
|
if (childIndex == 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
final View childBefore = getChildAt(childIndex - 1);
|
final View childBefore = getChildAt(childIndex - 1);
|
||||||
final View child = getChildAt(childIndex);
|
final View child = getChildAt(childIndex);
|
||||||
boolean result = false;
|
boolean result = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user