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;
|
||||
if (mCurrentSong == -1)
|
||||
return;
|
||||
if (mMediaPlayer.isPlaying())
|
||||
if (!plugged && mMediaPlayer.isPlaying())
|
||||
setPlaying(false);
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user