iammert/MusicPlayerView

Loaded progress looks "jump" instead increasing smoothly if maxProgress is less than 10

Opened this issue · 1 comments

To reproduce this issue, let's try to setMax() with small value, for example 5.

When MusicPlayerView is playing, you would notice the arc progress jump from 0 degree to 50 degree, then 100 degree.. and so on.

I investigate on code and see it's because of interval in postDelay():

mRunnableProgress = new Runnable() {
@OverRide
public void run() {
if(isRotating){
currentProgress += PROGRESS_SECOND_MS;
mHandlerProgress.postDelayed(mRunnableProgress, PROGRESS_SECOND_MS);
}
}
};

Could you please suggest a fix to make arc progress smoother?

i will ping here as soon as possible. soory for issue btw