summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorTom Hennen <TomHennen@users.noreply.github.com>2016-01-24 18:44:22 -0500
committerTom Hennen <TomHennen@users.noreply.github.com>2016-01-24 18:44:22 -0500
commitf5f3477ac01356e17fb48768420d104a5d9919f2 (patch)
treeca2fb9afb09a5547e4e8cc4203b02840422aa85d /core/src
parent0eefa8c5412bf15c00fd83f318629377b4805c20 (diff)
parent6392f7abd4c778e2058c7a37bea2c6cfdde26496 (diff)
downloadAntennaPod-f5f3477ac01356e17fb48768420d104a5d9919f2.zip
Merge pull request #1605 from mfietz/issue/1603-change-speed-confusion
Eliminate confusion from UI elements that change playback speed
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java7
1 files changed, 7 insertions, 0 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 31cb25d40..27935978c 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
@@ -11,6 +11,7 @@ import android.content.SharedPreferences;
import android.content.res.TypedArray;
import android.media.MediaPlayer;
import android.os.AsyncTask;
+import android.os.Build;
import android.os.IBinder;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
@@ -34,6 +35,7 @@ import de.danoeh.antennapod.core.feed.Chapter;
import de.danoeh.antennapod.core.feed.FeedMedia;
import de.danoeh.antennapod.core.feed.MediaType;
import de.danoeh.antennapod.core.preferences.PlaybackPreferences;
+import de.danoeh.antennapod.core.preferences.UserPreferences;
import de.danoeh.antennapod.core.service.playback.PlaybackService;
import de.danoeh.antennapod.core.service.playback.PlaybackServiceMediaPlayer;
import de.danoeh.antennapod.core.service.playback.PlayerStatus;
@@ -677,6 +679,11 @@ public abstract class PlaybackController {
}
public boolean canSetPlaybackSpeed() {
+ if (org.antennapod.audio.MediaPlayer.isPrestoLibraryInstalled(activity.getApplicationContext())
+ || UserPreferences.useSonic()
+ || Build.VERSION.SDK_INT >= 23) {
+ return true;
+ }
return playbackService != null && playbackService.canSetSpeed();
}