Don't pause playback when the headset is plugged in
This commit is contained in:
1 parent
af2b7244c9
commit
8c499cdff2
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user