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

Commit 400c7395 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove unnecessary/misleading page indication dot."

parents 45e2a8b6 8991d65b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -98,6 +98,11 @@ public class PageIndicator extends View {
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);

        // Don't draw anything unless there's multiple pages to scroll through.  No need to clear
        // any previous dots, since onDraw provides a canvas that's already cleared.
        if (mPageCount <= 1)
            return;

        int x = canvas.getWidth() / 2 - (mPageCount / 2) * mStep;
        int y = canvas.getHeight() / 2;