diff options
Diffstat (limited to 'app/src/main/java/de')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/dialog/VariableSpeedDialog.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/VariableSpeedDialog.java b/app/src/main/java/de/danoeh/antennapod/dialog/VariableSpeedDialog.java index c62f5df7e..c32f2f309 100644 --- a/app/src/main/java/de/danoeh/antennapod/dialog/VariableSpeedDialog.java +++ b/app/src/main/java/de/danoeh/antennapod/dialog/VariableSpeedDialog.java @@ -86,6 +86,7 @@ public class VariableSpeedDialog extends BottomSheetDialogFragment { View root = View.inflate(getContext(), R.layout.speed_select_dialog, null); speedSeekBar = root.findViewById(R.id.speed_seek_bar); speedSeekBar.setProgressChangedListener(multiplier -> { + UserPreferences.setPlaybackSpeed(multiplier); if (controller != null) { controller.setPlaybackSpeed(multiplier); } @@ -148,10 +149,11 @@ public class VariableSpeedDialog extends BottomSheetDialogFragment { return true; }); holder.chip.setOnClickListener(v -> { + UserPreferences.setPlaybackSpeed(speed); new Handler(Looper.getMainLooper()).postDelayed(() -> { if (controller != null) { - dismiss(); controller.setPlaybackSpeed(speed); + dismiss(); } }, 200); }); |