Update queue offset when changing songs

This commit is contained in:
Christopher Eby 2011-09-17 02:37:51 -05:00
parent 4ba2eddd80
commit 399631d4ad

View File

@ -350,6 +350,8 @@ public final class SongTimeline {
{
synchronized (this) {
mCurrentPos += delta;
if (mQueueOffset > 0)
mQueueOffset -= 1;
return getSong(0);
}
}
@ -402,7 +404,7 @@ public final class SongTimeline {
for (int j = 0; j != songs.length; ++j)
timeline.add(new Song(songs[j]));
mQueueOffset = songs.length - 1;
mQueueOffset = songs.length;
}
}