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

Commit 9456655f authored by Adam Powell's avatar Adam Powell
Browse files

Fix a bug that could cause padded lists to draw dividers incorrectly

Change-Id: I6483848c55567f901ac8b1628991de3343bd3f3d
parent 1470f9c2
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -3093,7 +3093,14 @@ public class ListView extends AbsListView {
            }
            final Paint paint = mDividerPaint;

            final int listBottom = mBottom - mTop - mListPadding.bottom + mScrollY;
            int effectivePaddingTop = 0;
            int effectivePaddingBottom = 0;
            if ((mGroupFlags & CLIP_TO_PADDING_MASK) == CLIP_TO_PADDING_MASK) {
                effectivePaddingTop = mListPadding.top;
                effectivePaddingBottom = mListPadding.bottom;
            }

            final int listBottom = mBottom - mTop - effectivePaddingBottom + mScrollY;
            if (!mStackFromBottom) {
                int bottom = 0;
                
@@ -3144,7 +3151,7 @@ public class ListView extends AbsListView {
                }
            } else {
                int top;
                int listTop = mListPadding.top;
                int listTop = effectivePaddingTop;

                final int scrollY = mScrollY;