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

Commit a5aedadc authored by Doris Liu's avatar Doris Liu Committed by Android Git Automerger
Browse files

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

* commit '99aa13ec':
  Allow null child view when checking whether divider should draw
parents 20d54457 99aa13ec
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;
            }
        }