Don't pause playback when the headset is plugged in

This commit is contained in:
Christopher Eby 2010-02-20 00:31:08 -06:00
parent af2b7244c9
commit 8c499cdff2

View File

@ -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;