Skip to content

Commit 72050ee

Browse files
wvanhaevretvanlaerhoven
authored andcommitted
Track control is enabled when actions handlers have been set, no other rules required
1 parent fe44d5a commit 72050ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ios/backgroundAudio/THEOplayerRCTRemoteCommandsManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class THEOplayerRCTRemoteCommandsManager: NSObject {
105105
let playPauseControlsEnabled = self.hasSource && !self.inAd && (!self.isLive || self.allowLivePlayPause)
106106
let positionControlEnabled = self.hasSource && !self.inAd && !self.isLive
107107
let seekControlEnabled = self.hasSource && !self.inAd && !self.isLive && !self.hasActionHandler(for: .SKIP_TO_NEXT) && !self.hasActionHandler(for: .SKIP_TO_PREVIOUS)
108-
let trackControlEnabled = self.hasSource && !self.inAd && !self.isLive && self.hasActionHandler(for: .SKIP_TO_NEXT) && self.hasActionHandler(for: .SKIP_TO_PREVIOUS)
108+
let trackControlEnabled = self.hasActionHandler(for: .SKIP_TO_NEXT) && self.hasActionHandler(for: .SKIP_TO_PREVIOUS)
109109

110110
// update the enabled state to have correct visual representation in the lockscreen
111111
commandCenter.pauseCommand.isEnabled = playPauseControlsEnabled

0 commit comments

Comments
 (0)