-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve management of player conflicts
Closes #36
- Loading branch information
1 parent
762fd90
commit f724781
Showing
3 changed files
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
enum SpotifyApplication { | ||
static let bundleID = "com.spotify.client" | ||
static let app: SBSpotifyApplication? = SBApplicationManager.spotifyApp() | ||
|
||
static func getPlayerState() -> PlayerState? { | ||
guard let app = app else { return nil } | ||
guard let app = app, Utils.isAppRunning(bundleID) else { return nil } | ||
return PlayerState(.spotify, app) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters