Add some debugging output

There seems to be an occasional crash when change the external output only preference. Needs investigating
This commit is contained in:
Christopher Eby 2010-03-03 17:47:31 -06:00
parent b2c7609cc3
commit 1c7a4aa7c3

View File

@ -169,6 +169,8 @@ public class PlaybackService extends Service implements Runnable, MediaPlayer.On
{
super.onDestroy();
Log.d("VanillaMusic", "destroy");
saveState(true);
if (mMediaPlayer != null) {
@ -439,6 +441,7 @@ public class PlaybackService extends Service implements Runnable, MediaPlayer.On
mHeadsetPause = mSettings.getBoolean("headset_pause", true);
} else if ("headset_only".equals(key)) {
mHeadsetOnly = mSettings.getBoolean(key, false);
Log.d("VanillaMusic", "mp: " + mMediaPlayer);
if (mHeadsetOnly && isSpeakerOn() && mMediaPlayer.isPlaying())
pause();
} else if ("remote_player".equals(key)) {