Files
ChrisandClaude Opus 4.6 0a88d147ed Fix AA disconnect: detect via display removal, prevent auto-resume
Android Auto on projection-mode devices (com.google.android.projection.gearhead)
doesn't trigger ACTION_EXIT_CAR_MODE, so the disconnect was never detected.

- Add DisplayManager.DisplayListener to detect AA disconnect when virtual
  displays are removed (projection mode)
- Add bidirectional method channel so Dart notifies native of AA connection
- Add onAADisconnected callback that force-pauses (not toggles) the player
- Suppress Sendspin stream/start for 2s after disconnect to handle the race
  where the server sends audio before processing our pause command
- Guard interruption begin handler to only pause/toggle when actually playing,
  preventing the interrupted-while-paused -> accidental resume bug

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 23:56:13 +00:00
..
2026-02-05 09:19:12 +00:00