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:
cottongin
2026-03-18 06:58:55 -04:00
parent 5126ad6366
commit d451d005c0
2 changed files with 7 additions and 4 deletions

View File

@@ -41,7 +41,6 @@ class RadioPlayerAdapter(
} else {
emptyList()
}
return SimpleBasePlayer.State.Builder()
.setAvailableCommands(commands)
.setPlaybackState(_playbackState)