From 702b9a4aaafc5e5a15c280ed163e326753e505c4 Mon Sep 17 00:00:00 2001 From: FineFindus <63370021+FineFindus@users.noreply.github.com> Date: Wed, 6 Sep 2023 10:23:23 +0200 Subject: [PATCH] BREAKING CHANGE: persist playback speed and remove playback speed option (#4661) --- .../github/libretube/ui/sheets/PlaybackOptionsSheet.kt | 5 +++++ app/src/main/res/xml/player_settings.xml | 9 --------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/github/libretube/ui/sheets/PlaybackOptionsSheet.kt b/app/src/main/java/com/github/libretube/ui/sheets/PlaybackOptionsSheet.kt index 59451cb818..4156eb6c2a 100644 --- a/app/src/main/java/com/github/libretube/ui/sheets/PlaybackOptionsSheet.kt +++ b/app/src/main/java/com/github/libretube/ui/sheets/PlaybackOptionsSheet.kt @@ -72,6 +72,11 @@ class PlaybackOptionsSheet( binding.speed.value.round(2), binding.pitch.value.round(2) ) + + PreferenceHelper.putString( + PreferenceKeys.PLAYBACK_SPEED, + player.playbackParameters.speed.toString() + ) } companion object { diff --git a/app/src/main/res/xml/player_settings.xml b/app/src/main/res/xml/player_settings.xml index 9c279ca057..b3b96c6797 100644 --- a/app/src/main/res/xml/player_settings.xml +++ b/app/src/main/res/xml/player_settings.xml @@ -138,15 +138,6 @@ - -