- migrated ids from int
to long
- some cleaning
This commit is contained in:
parent
90bca59192
commit
9e46d74507
58 changed files with 708 additions and 635 deletions
|
@ -90,7 +90,7 @@ class MediaSessionCallback(
|
|||
}
|
||||
}
|
||||
|
||||
private fun checkAndStartPlaying(songs: ArrayList<Song>, itemId: Int) {
|
||||
private fun checkAndStartPlaying(songs: ArrayList<Song>, itemId: Long) {
|
||||
var songIndex = MusicUtil.indexOfSongInList(songs, itemId)
|
||||
if (songIndex == -1) {
|
||||
songIndex = 0
|
||||
|
|
|
@ -618,7 +618,7 @@ public class MusicService extends Service implements
|
|||
break;
|
||||
case SHUFFLE_MODE_NONE:
|
||||
this.shuffleMode = shuffleMode;
|
||||
int currentSongId = Objects.requireNonNull(getCurrentSong()).getId();
|
||||
long currentSongId = Objects.requireNonNull(getCurrentSong()).getId();
|
||||
playingQueue = new ArrayList<>(originalPlayingQueue);
|
||||
int newPosition = 0;
|
||||
if (getPlayingQueue() != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue