Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
trietbui85 opened this issue Aug 8, 2015 · 1 comment

Comments

@trietbui85
Copy link

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?

@iammert
Copy link
Owner

iammert commented Aug 9, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants