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

Commit 08e1473c authored by Evan Charlton's avatar Evan Charlton
Browse files

Invalidate the ProgressBar when changing animation states

When changing a ProgressBar from indeterminate to determinate, the display was
not being invalidated correctly and would freeze the progress bar.

Bug: 1296117
Change-Id: I2e0a9b76da919b5388f1dbc1c8f4b030355eb8ce
parent a14aded5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -715,8 +715,8 @@ public class ProgressBar extends View {
            mAnimation.setDuration(mDuration);
            mAnimation.setInterpolator(mInterpolator);
            mAnimation.setStartTime(Animation.START_ON_FIRST_FRAME);
            postInvalidate();
        }
        postInvalidate();
    }

    /**
@@ -729,6 +729,7 @@ public class ProgressBar extends View {
            ((Animatable) mIndeterminateDrawable).stop();
            mShouldStartAnimationDrawable = false;
        }
        postInvalidate();
    }

    /**