only start playback if mCurrentSong is set
This commit is contained in:
parent
82154e740c
commit
7cefab87a6
@ -883,7 +883,7 @@ public final class PlaybackService extends Service
|
||||
{
|
||||
int toggled = oldState ^ state;
|
||||
|
||||
if ((toggled & FLAG_PLAYING) != 0) {
|
||||
if ( ((toggled & FLAG_PLAYING) != 0) && mCurrentSong != null) { // user requested to start playback AND we have a song selected
|
||||
if ((state & FLAG_PLAYING) != 0) {
|
||||
if (mMediaPlayerInitialized)
|
||||
mMediaPlayer.start();
|
||||
|
Loading…
x
Reference in New Issue
Block a user