diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2019-09-03 18:50:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-03 18:50:01 +0200 |
commit | 5bef3300df2e5c800f9ef7fc48e15b9921a63784 (patch) | |
tree | f9eb2cb6da2fbf1cb70af007430452a4da2d666c /app/src/main/java/de | |
parent | 14936852d4d700983423381163a328f87222f3ba (diff) | |
parent | 4f9cde8fc743dd2c2f2271b8732d009e3014c715 (diff) | |
download | AntennaPod-5bef3300df2e5c800f9ef7fc48e15b9921a63784.zip |
Merge pull request #3368 from ByteHamster/playback-speed-selector
Fixed playback speed button not cycling through options
Diffstat (limited to 'app/src/main/java/de')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/AudioplayerActivity.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/AudioplayerActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/AudioplayerActivity.java index 9db860598..2321a3602 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/AudioplayerActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/AudioplayerActivity.java @@ -7,6 +7,8 @@ import android.util.Log; import android.view.View; import java.text.DecimalFormat; +import java.text.DecimalFormatSymbols; +import java.util.Locale; import java.util.concurrent.atomic.AtomicBoolean; import de.danoeh.antennapod.core.feed.MediaType; @@ -98,7 +100,9 @@ public class AudioplayerActivity extends MediaplayerInfoActivity { } if (controller.canSetPlaybackSpeed()) { String[] availableSpeeds = UserPreferences.getPlaybackSpeedArray(); - String currentSpeed = new DecimalFormat("0.00x").format(UserPreferences.getPlaybackSpeed()); + DecimalFormatSymbols format = new DecimalFormatSymbols(Locale.US); + format.setDecimalSeparator('.'); + String currentSpeed = new DecimalFormat("0.00", format).format(UserPreferences.getPlaybackSpeed()); // Provide initial value in case the speed list has changed // out from under us |