Skip to content

Commit

Permalink
Check isLockScreenScrubbingDisabled on position change
Browse files Browse the repository at this point in the history
  • Loading branch information
bjtitus committed Dec 11, 2024
1 parent aa4e900 commit 30772fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions podcasts/PlaybackManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1684,6 +1684,9 @@ class PlaybackManager: ServerPlaybackDelegate {
}

commandCenter.changePlaybackPositionCommand.addTarget { [weak self] event -> MPRemoteCommandHandlerStatus in

guard Settings.isLockScreenScrubbingDisabled == false else { return .commandFailed } // Only perform the seek if lock screen scrubbing is disabled

guard let strongSelf = self, let _ = strongSelf.currentEpisode() else { return .noActionableNowPlayingItem }

strongSelf.analyticsPlaybackHelper.currentSource = strongSelf.commandCenterSource
Expand Down

0 comments on commit 30772fc

Please sign in to comment.