diff options
author | Martin Fietz <martin.fietz@gmail.com> | 2018-01-10 22:42:59 +0100 |
---|---|---|
committer | Martin Fietz <martin.fietz@gmail.com> | 2018-01-10 22:42:59 +0100 |
commit | ce2aeb5e90e9d3b554804f47c9a13aa97d278ed5 (patch) | |
tree | ab4542d107b0243a5fb649b610a1d651f431be12 /app/src/main | |
parent | 92184452e0044d7e417ef8bb6c65643e553ccb68 (diff) | |
download | AntennaPod-ce2aeb5e90e9d3b554804f47c9a13aa97d278ed5.zip |
Use DecimalFormat
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/AudioplayerActivity.java | 3 |
1 files changed, 2 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 ca214de9e..f7cc6f942 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/AudioplayerActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/AudioplayerActivity.java @@ -6,6 +6,7 @@ import android.text.TextUtils; import android.util.Log; import android.view.View; +import java.text.DecimalFormat; import java.util.concurrent.atomic.AtomicBoolean; import de.danoeh.antennapod.core.feed.MediaType; @@ -95,7 +96,7 @@ public class AudioplayerActivity extends MediaplayerInfoActivity { UserPreferences.setPlaybackSpeed(String.valueOf(speed)); } } - String speedStr = String.format("%.2fx", speed); + String speedStr = new DecimalFormat("0.00x").format(speed); butPlaybackSpeed.setText(speedStr); } |