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

Commit e1be66cd authored by Mindy Pereira's avatar Mindy Pereira
Browse files

Make sure bottom overscroll feedback takes scrollY into account.

This fixes an issue where the overscroll feedback was rendering
several pixels above the bottom of the list on a flick.

Change-Id: I66160d1b72c04f0273f063910eff995e2b2569f0
parent c948d07b
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -3144,9 +3144,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                final int width = getWidth();
                final int width = getWidth();
                final int height = getHeight();
                final int height = getHeight();


                canvas.translate(-width, 0);
                canvas.translate(-width, Math.max(height, scrollY + mLastPositionDistanceGuess));
                canvas.rotate(-180, width, 0);
                canvas.rotate(180, width, 0);
                canvas.translate(0, -height);
                mEdgeGlowBottom.setSize(width, height);
                mEdgeGlowBottom.setSize(width, height);
                if (mEdgeGlowBottom.draw(canvas)) {
                if (mEdgeGlowBottom.draw(canvas)) {
                    invalidate();
                    invalidate();