BREAKING CHANGE: persist playback speed and remove playback speed option (#4661)

This commit is contained in:
FineFindus 2023-09-06 10:23:23 +02:00 committed by GitHub
parent 41c35c5392
commit 702b9a4aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 9 deletions

View File

@ -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 {

View File

@ -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"