mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Fix lock screen always showing 10s seek regardless of system controls setting
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user