fix crash when clearing the queue
This commit is contained in:
parent
66d24b49c6
commit
207b075d13
2 changed files with 2 additions and 2 deletions
|
|
@ -480,6 +480,8 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP
|
|||
|
||||
private void openCurrent() {
|
||||
synchronized (this) {
|
||||
// current song will be null when queue is cleared
|
||||
if (getCurrentSong() == null) return;
|
||||
playback.setDataSource(getTrackUri(getCurrentSong()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue