fix: register session with addSession() to activate Media3 notifications
MediaSessionService only sets up its internal MediaNotificationManager when addSession() is called. This normally happens when a MediaController binds, but since we use custom intents, no controller ever connected. Calling addSession() after session creation activates the notification pipeline. Also removed debug logging. Made-with: Cursor
This commit is contained in:
@@ -41,7 +41,6 @@ class RadioPlayerAdapter(
|
||||
} else {
|
||||
emptyList()
|
||||
}
|
||||
|
||||
return SimpleBasePlayer.State.Builder()
|
||||
.setAvailableCommands(commands)
|
||||
.setPlaybackState(_playbackState)
|
||||
|
||||
Reference in New Issue
Block a user