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

Commit ddb77003 authored by Tony Wickham's avatar Tony Wickham
Browse files

Missed one more page indicator null check.

Hopefully this is the last one.

Change-Id: I1af4f7058834fe0ba60ccc8752a6bf0df64be473
parent fea0a5f6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1275,14 +1275,16 @@ public class Workspace extends PagedView
        // Update the page indicator progress.
        boolean isTransitioning = mIsSwitchingState
                || (getLayoutTransition() != null && getLayoutTransition().isRunning());
        if (mPageIndicator != null && !isTransitioning) {
        if (!isTransitioning) {
            showPageIndicatorAtCurrentScroll();
        }
    }

    private void showPageIndicatorAtCurrentScroll() {
        if (mPageIndicator != null) {
            mPageIndicator.setScroll(getScrollX(), computeMaxScrollX());
        }
    }

    @Override
    protected void overScroll(float amount) {