Merge pull request #3498 from ByteHamster/fix-mono-switch
Fixed downmixing if service is not bound
This commit is contained in:
commit
f750e06a1b
|
@ -503,16 +503,6 @@ public class PlaybackController {
|
|||
PlaybackServiceMediaPlayer.PSMPInfo info = playbackService.getPSMPInfo();
|
||||
status = info.playerStatus;
|
||||
media = info.playable;
|
||||
/*
|
||||
if (media == null) {
|
||||
Log.w(TAG,
|
||||
"PlaybackService has no media object. Trying to restore last played media.");
|
||||
Intent serviceIntent = getPlayLastPlayedMediaIntent();
|
||||
if (serviceIntent != null) {
|
||||
ContextCompat.startForegroundService(activity, serviceIntent);
|
||||
}
|
||||
}
|
||||
*/
|
||||
onServiceQueried();
|
||||
|
||||
setupGUI();
|
||||
|
@ -720,7 +710,8 @@ public class PlaybackController {
|
|||
}
|
||||
|
||||
public boolean canDownmix() {
|
||||
return playbackService != null && playbackService.canDownmix();
|
||||
return (playbackService != null && playbackService.canDownmix())
|
||||
|| UserPreferences.useSonic();
|
||||
}
|
||||
|
||||
public void setDownmix(boolean enable) {
|
||||
|
|
Loading…
Reference in New Issue