diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-03-22 19:44:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-22 19:44:14 +0100 |
commit | bd17373c182e8a91306ca37981b953e60e4a9a46 (patch) | |
tree | 47197ca728644ff642eba7e878fd06cc7375bd0a /app/src/main/java/de | |
parent | 0a6b7ed69957cea9582af9e0dd861ed13795d6b5 (diff) | |
download | AntennaPod-bd17373c182e8a91306ca37981b953e60e4a9a46.zip |
Playback speed fixes (#7013)
- Remove video-specific playback speed (no longer needed now that we have per-podcast speed)
- Respect changed speed setting on settings page even if the service is not running
- Do not change global speed when feed setting is updated
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); }); |