Fix lock screen always showing 10s seek regardless of system controls setting

This commit is contained in:
Arkadiusz Fal
2026-02-12 05:02:41 +01:00
parent 78bc7e0063
commit ded130a8c3
3 changed files with 26 additions and 5 deletions

View File

@@ -519,7 +519,10 @@ private struct SystemControlsSection: View {
.onChange(of: systemControlsMode) { _, newMode in
guard newMode != viewModel.systemControlsMode else { return }
viewModel.updateSystemControlsModeSync(newMode)
appEnvironment?.playerService.reconfigureSystemControls()
appEnvironment?.playerService.reconfigureSystemControls(
mode: newMode,
duration: viewModel.systemControlsSeekDuration
)
}
if systemControlsMode == .seek {
@@ -535,7 +538,10 @@ private struct SystemControlsSection: View {
.onChange(of: systemControlsSeekDuration) { _, newDuration in
guard newDuration != viewModel.systemControlsSeekDuration else { return }
viewModel.updateSystemControlsSeekDurationSync(newDuration)
appEnvironment?.playerService.reconfigureSystemControls()
appEnvironment?.playerService.reconfigureSystemControls(
mode: viewModel.systemControlsMode,
duration: newDuration
)
}
}
} header: {