Skip to content

Commit

Permalink
BREAKING CHANGE: persist playback speed and remove playback speed opt…
Browse files Browse the repository at this point in the history
…ion (#4661)
  • Loading branch information
FineFindus authored Sep 6, 2023
1 parent 41c35c5 commit 702b9a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
9 changes: 0 additions & 9 deletions app/src/main/res/xml/player_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,6 @@

<PreferenceCategory app:title="@string/defaults">

<com.github.libretube.ui.views.SliderPreference
android:icon="@drawable/ic_speed"
app:defValue="1.0"
app:key="playback_speed"
app:stepSize="0.1"
app:title="@string/playback_speed"
app:valueFrom="0.2"
app:valueTo="4.0" />

<ListPreference
android:defaultValue=""
android:icon="@drawable/ic_caption"
Expand Down

0 comments on commit 702b9a4

Please sign in to comment.