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

Commit 894d8cf4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix edge effect not showing up on first scroll"

parents 8c8fb65a 3af8c96b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4328,13 +4328,14 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                translateX = 0;
                translateY = 0;
            }
            mEdgeGlowTop.setSize(width, height);
            mEdgeGlowBottom.setSize(width, height);
            if (!mEdgeGlowTop.isFinished()) {
                final int restoreCount = canvas.save();
                canvas.clipRect(translateX, translateY,
                         translateX + width ,translateY + mEdgeGlowTop.getMaxHeight());
                final int edgeY = Math.min(0, scrollY + mFirstPositionDistanceGuess) + translateY;
                canvas.translate(translateX, edgeY);
                mEdgeGlowTop.setSize(width, height);
                if (mEdgeGlowTop.draw(canvas)) {
                    invalidateTopGlow();
                }
@@ -4349,7 +4350,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                        - (clipToPadding ? mPaddingBottom : 0);
                canvas.translate(edgeX, edgeY);
                canvas.rotate(180, width, 0);
                mEdgeGlowBottom.setSize(width, height);
                if (mEdgeGlowBottom.draw(canvas)) {
                    invalidateBottomGlow();
                }