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

Commit 99aa13ec authored by Doris Liu's avatar Doris Liu Committed by Android (Google) Code Review
Browse files

Merge "Allow null child view when checking whether divider should draw" into mnc-dev

parents ca985b54 f102d426
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -659,7 +659,8 @@ public class LinearLayout extends ViewGroup {
     */
    private boolean allViewsAreGoneBefore(int childIndex) {
        for (int i = childIndex - 1; i >= 0; i--) {
            if (getVirtualChildAt(i).getVisibility() != GONE) {
            View child = getVirtualChildAt(i);
            if (child != null && child.getVisibility() != GONE) {
                return false;
            }
        }