* commit 'e5c46faefb9deda885cff308ec9b1926636ca8bc': Return early when checking divider before child zero.
This commit is contained in:
committed by
Android Git Automerger
commit
9951b7c4f0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user