Don't pause playback when the headset is plugged in

This commit is contained in:
Christopher Eby committed 2010-02-20 00:31:08 -06:00
1 parent af2b7244c9
commit 8c499cdff2
1 file changed
+1 -1
+1 -1
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;