Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5c46fae authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am 6d0dd51e: Merge "Return early when checking divider before child zero."

* commit '6d0dd51e':
  Return early when checking divider before child zero.
parents 807c7ae0 6d0dd51e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;