diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2016-03-17 18:25:19 +0100 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2016-03-17 18:25:19 +0100 |
commit | 4954db7738091774414e54e46cbea4f6833b227f (patch) | |
tree | 2fb2869bbc8401dfb152cdfd0126dccdfa551a6d /core/src/main | |
parent | 4bfb0022c32b32dc016215c612e2c0be79130f67 (diff) | |
download | AntennaPod-4954db7738091774414e54e46cbea4f6833b227f.zip |
Pre-select playback speeds 1.00, 1.25, 1.50, 1.75 and 2.00 only
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/preferences/UserPreferences.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/preferences/UserPreferences.java b/core/src/main/java/de/danoeh/antennapod/core/preferences/UserPreferences.java index aa20b69b6..f9613cc3d 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/preferences/UserPreferences.java +++ b/core/src/main/java/de/danoeh/antennapod/core/preferences/UserPreferences.java @@ -546,15 +546,7 @@ public class UserPreferences { String[] selectedSpeeds = null; // If this preference hasn't been set yet, return the default options if (valueFromPrefs == null) { - String[] allSpeeds = context.getResources().getStringArray(R.array.playback_speed_values); - List<String> speedList = new ArrayList<>(); - for (String speedStr : allSpeeds) { - float speed = Float.parseFloat(speedStr); - if (speed < 2.0001 && speed * 10 % 1 == 0) { - speedList.add(speedStr); - } - } - selectedSpeeds = speedList.toArray(new String[speedList.size()]); + selectedSpeeds = new String[] { "1.00", "1.25", "1.50", "1.75", "2.00" }; } else { try { JSONArray jsonArray = new JSONArray(valueFromPrefs); |