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

Commit 596913ba authored by Mindy Pereira's avatar Mindy Pereira Committed by Android (Google) Code Review
Browse files

Merge "Make sure bottom overscroll feedback takes scrollY into account."

parents 6a9e0360 e1be66cd
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -3144,9 +3144,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                final int width = getWidth();
                final int height = getHeight();

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