Don't pause playback when the headset is plugged in
This commit is contained in:
parent
af2b7244c9
commit
8c499cdff2
@ -176,7 +176,7 @@ public class MusicPlayer implements Runnable, MediaPlayer.OnCompletionListener,
|
|||||||
mPlugged = plugged;
|
mPlugged = plugged;
|
||||||
if (mCurrentSong == -1)
|
if (mCurrentSong == -1)
|
||||||
return;
|
return;
|
||||||
if (mMediaPlayer.isPlaying())
|
if (!plugged && mMediaPlayer.isPlaying())
|
||||||
setPlaying(false);
|
setPlaying(false);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user