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

Commit c7e5a2fe authored by Adam Powell's avatar Adam Powell Committed by android code review
Browse files

Merge "Fix dividers for LinearLayout (TabWidget)"

parents 5aeb8587 20761fcd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -307,7 +307,7 @@ public class LinearLayout extends ViewGroup {
            if (child != null && child.getVisibility() != GONE) {
                if (hasDividerBeforeChildAt(i)) {
                    final LayoutParams lp = (LayoutParams) child.getLayoutParams();
                    final int top = child.getTop() - lp.topMargin;
                    final int top = child.getTop() - lp.topMargin - mDividerHeight;
                    drawHorizontalDivider(canvas, top);
                }
            }
@@ -334,7 +334,7 @@ public class LinearLayout extends ViewGroup {
            if (child != null && child.getVisibility() != GONE) {
                if (hasDividerBeforeChildAt(i)) {
                    final LayoutParams lp = (LayoutParams) child.getLayoutParams();
                    final int left = child.getLeft() - lp.leftMargin;
                    final int left = child.getLeft() - lp.leftMargin - mDividerWidth;
                    drawVerticalDivider(canvas, left);
                }
            }