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:
parent
772df6acc6
commit
38a2c43e73
@ -256,8 +256,6 @@ public class CoverView extends View {
|
|||||||
if (mService == null)
|
if (mService == null)
|
||||||
throw new RemoteException();
|
throw new RemoteException();
|
||||||
|
|
||||||
mService.setCurrentSong(delta);
|
|
||||||
|
|
||||||
int from = delta > 0 ? 1 : 0;
|
int from = delta > 0 ? 1 : 0;
|
||||||
int to = delta > 0 ? 0 : 1;
|
int to = delta > 0 ? 0 : 1;
|
||||||
int i = delta > 0 ? STORE_SIZE - 1 : 0;
|
int i = delta > 0 ? STORE_SIZE - 1 : 0;
|
||||||
@ -267,6 +265,9 @@ public class CoverView extends View {
|
|||||||
mSongs[i] = null;
|
mSongs[i] = null;
|
||||||
mBitmaps[i] = null;
|
mBitmaps[i] = null;
|
||||||
reset();
|
reset();
|
||||||
|
invalidate();
|
||||||
|
|
||||||
|
mService.setCurrentSong(delta);
|
||||||
|
|
||||||
mHandler.sendEmptyMessage(i);
|
mHandler.sendEmptyMessage(i);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user