kreed/vanilla — Issue #34: seekBar resets to zero when seeking long songs
Author: Bigsy
Created: 2011-12-18 19:14:05+00:00
State: open

At around the 35 > 36 minute mark (you need a long song) the seek bar ui resets itself to 0. I had a very quick look at the code and stuck some logging in around here in fullplaybackactivity.java:

private void updateProgress()
{
int position = PlaybackService.hasInstance() ? PlaybackService.get(this).getPosition() : 0;

if (!mSeekBarTracking) {
long duration = mDuration;
mSeekBar.setProgress(duration == 0 ? 0 : (int)(1000 * position / duration));
}

It appears that around 35 > 36 minute mark setProgress switches to a negitive int