Added disable for hold playback rate increase.

This commit is contained in:
Koen J 2025-06-18 15:43:12 +02:00
commit c6100ede70
3 changed files with 13 additions and 10 deletions

View file

@ -587,18 +587,19 @@ class Settings : FragmentedStorageFileJson() {
@FormField(R.string.hold_playback_speed, FieldForm.DROPDOWN, R.string.hold_playback_speed_description, 27)
@DropdownFieldOptionsId(R.array.hold_playback_speeds)
var holdPlaybackSpeed: Int = 3;
var holdPlaybackSpeed: Int = 4;
fun getHoldPlaybackSpeed(): Double {
return when(holdPlaybackSpeed) {
0 -> 1.25
1 -> 1.5
2 -> 1.75
3 -> 2.0
4 -> 2.25
5 -> 2.5
6 -> 2.75
7 -> 3.0
0 -> 1.0
1 -> 1.25
2 -> 1.5
3 -> 1.75
4 -> 2.0
5 -> 2.25
6 -> 2.5
7 -> 2.75
8 -> 3.0
else -> 2.0
}
}

View file

@ -240,7 +240,8 @@ class GestureControlView : LinearLayout {
&& !_adjustingFullscreenUp
&& !_adjustingFullscreenDown
&& !_isPanning
&& !_isZooming) {
&& !_isZooming
&& Settings.instance.playback.getHoldPlaybackSpeed() > 1.0) {
_speedHolding = true
showHoldSpeedControls()
onSpeedHoldStart.emit()

View file

@ -1112,6 +1112,7 @@
<item>5.0</item>
</string-array>
<string-array name="hold_playback_speeds">
<item>Disabled</item>
<item>1.25</item>
<item>1.5</item>
<item>1.75</item>