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

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

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

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