Files
Android-247-Radio/app
cottongin 5126ad6366 fix: post placeholder foreground notification immediately on play
startForegroundService() requires startForeground() within ~5 seconds.
The async coroutine (DB queries, old job join) delayed the Media3
notification pipeline past this deadline. Now we:
- Create the media session in onCreate() instead of lazily
- Post a minimal "Connecting…" notification synchronously in
  onStartCommand before launching the async play coroutine
- Media3 replaces it with the proper media notification once the
  adapter state updates to Playing

Made-with: Cursor
2026-03-18 06:41:24 -04:00
..