Fix purge

This commit is contained in:
Christopher Eby 2011-08-28 19:47:26 -05:00
parent f0abd282cc
commit fa63a36bbc

View File

@ -413,10 +413,11 @@ public final class SongTimeline {
public void purge()
{
synchronized (this) {
while (mCurrentPos > 10 && mRepeatStart > 0) {
while (mCurrentPos > 10 && mRepeatStart != 0) {
mSongs.remove(0);
--mCurrentPos;
--mRepeatStart;
if (mRepeatStart > 0)
--mRepeatStart;
}
}
}