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

Commit 05b59c08 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Calling pageTransisionEnd only after edgeEffect finishes

Bug: 186605795
Test: Presubmit
Change-Id: I2b46d0b0a47c68038f300e71ab89bd7e5a5e3895
parent 99d4010c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -388,7 +388,8 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
    }

    protected void pageEndTransition() {
        if (mIsPageInTransition) {
        if (mIsPageInTransition && !mIsBeingDragged && mScroller.isFinished()
                && mEdgeGlowLeft.isFinished() && mEdgeGlowRight.isFinished()) {
            mIsPageInTransition = false;
            onPageEndTransition();
        }
@@ -1740,6 +1741,7 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
    public void draw(Canvas canvas) {
        super.draw(canvas);
        drawEdgeEffect(canvas);
        pageEndTransition();
    }

    protected void drawEdgeEffect(Canvas canvas) {