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:
parent
b2c7609cc3
commit
1c7a4aa7c3
@ -169,6 +169,8 @@ public class PlaybackService extends Service implements Runnable, MediaPlayer.On
|
|||||||
{
|
{
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
|
||||||
|
Log.d("VanillaMusic", "destroy");
|
||||||
|
|
||||||
saveState(true);
|
saveState(true);
|
||||||
|
|
||||||
if (mMediaPlayer != null) {
|
if (mMediaPlayer != null) {
|
||||||
@ -439,6 +441,7 @@ public class PlaybackService extends Service implements Runnable, MediaPlayer.On
|
|||||||
mHeadsetPause = mSettings.getBoolean("headset_pause", true);
|
mHeadsetPause = mSettings.getBoolean("headset_pause", true);
|
||||||
} else if ("headset_only".equals(key)) {
|
} else if ("headset_only".equals(key)) {
|
||||||
mHeadsetOnly = mSettings.getBoolean(key, false);
|
mHeadsetOnly = mSettings.getBoolean(key, false);
|
||||||
|
Log.d("VanillaMusic", "mp: " + mMediaPlayer);
|
||||||
if (mHeadsetOnly && isSpeakerOn() && mMediaPlayer.isPlaying())
|
if (mHeadsetOnly && isSpeakerOn() && mMediaPlayer.isPlaying())
|
||||||
pause();
|
pause();
|
||||||
} else if ("remote_player".equals(key)) {
|
} else if ("remote_player".equals(key)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user