Keep lock screen controls within a compact card
This commit is contained in:
@@ -34,6 +34,7 @@ final class LiveActivityManager: ObservableObject {
|
||||
|
||||
func start(_ state: MediaState, connection: Connection) {
|
||||
guard !running, state.hasSession, UIApplication.shared.applicationState == .active else { return }
|
||||
guard connection.token != nil else { error = "Сначала выполните сопряжение с ПК."; return }
|
||||
guard ActivityAuthorizationInfo().areActivitiesEnabled else {
|
||||
error = "Разрешите Live Activities в настройках MusicBridge на iPhone."
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user