Update cover earlier in CoverView shiftCover

Now that the RemoteException is handled properly we can reorganize this method
to provide a nice boost to responsiveness
This commit is contained in:
Christopher Eby 2010-02-28 19:46:25 -06:00
parent 772df6acc6
commit 38a2c43e73

View File

@ -256,8 +256,6 @@ public class CoverView extends View {
if (mService == null)
throw new RemoteException();
mService.setCurrentSong(delta);
int from = delta > 0 ? 1 : 0;
int to = delta > 0 ? 0 : 1;
int i = delta > 0 ? STORE_SIZE - 1 : 0;
@ -267,6 +265,9 @@ public class CoverView extends View {
mSongs[i] = null;
mBitmaps[i] = null;
reset();
invalidate();
mService.setCurrentSong(delta);
mHandler.sendEmptyMessage(i);
}