diff options
author | ByteHamster <info@bytehamster.com> | 2019-10-05 23:03:33 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2019-10-05 23:04:18 +0200 |
commit | b081e320e3e130062ef89f4af9454765b0af54a3 (patch) | |
tree | e1e817724426d3e954b99e3abcea5a787b891d23 | |
parent | 570b5d47ae0fe306c3bd92770d9a050c48b5b20b (diff) | |
download | AntennaPod-b081e320e3e130062ef89f4af9454765b0af54a3.zip |
Fixed downmixing if service is not bound
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java b/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java index 5ce0e715e..d055098a1 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java @@ -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) { |