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:
@@ -274,10 +274,19 @@ final class NowPlayingService {
|
||||
|
||||
/// Configures remote commands based on current settings.
|
||||
/// Call this method when settings change to reconfigure the commands.
|
||||
func configureRemoteCommands() {
|
||||
func configureRemoteCommands(
|
||||
mode: SystemControlsMode? = nil,
|
||||
duration: SystemControlsSeekDuration? = nil
|
||||
) {
|
||||
// Remove existing targets to prevent duplicate handlers
|
||||
removeAllTargets()
|
||||
|
||||
// If explicit values provided, use them directly (bypasses debounce)
|
||||
if let mode, let duration {
|
||||
configureRemoteCommandsWithSettings(mode: mode, duration: duration)
|
||||
return
|
||||
}
|
||||
|
||||
// Read settings from active preset's cached global settings
|
||||
if let layoutService = playerControlsLayoutService {
|
||||
Task {
|
||||
|
||||
Reference in New Issue
Block a user