mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-23 07:25:25 +01:00
Fixed downmixing if service is not bound
This commit is contained in:
parent
570b5d47ae
commit
b081e320e3
@ -502,16 +502,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();
|
||||
@ -719,7 +709,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
Block a user