Prevent stale Cast resumes from breaking local playback - #5656
Prevent stale Cast resumes from breaking local playback#5656joashrajin wants to merge 2 commits into
Conversation
|
Claude finished @joashrajin's task in 1m 25s —— View job Code ReviewI reviewed the diff against ✅ What's good
🔎 Observations / minor suggestions
VerdictLooks good to merge. The only thing I'd genuinely recommend addressing is the CHANGELOG entry; the rest are observations. |
|
Claude finished @joashrajin's task in 1m 4s —— View job Code Review
I re-reviewed the current state of the branch against ✅ What's good
🔎 Minor observations (non-blocking)
VerdictLooks good to merge — no blocking issues. The earlier CHANGELOG recommendation is resolved; the remaining points are observations only. |
|
Version |
Description
A failed Cast SDK saved-session resume was routed through the same error path as a user-initiated Cast start. When the saved receiver was unavailable, the callback changed healthy local playback to an error state, removing the media notification and breaking lock-screen, headphone, and Android Auto controls.
This change preserves whether a Cast session failure came from an explicit start or an automatic resume. Resume failures are ignored only while local playback is active, while explicit Cast start failures and failures affecting an installed Cast player remain visible.
Fixes #5248
Fixes PCDROID-554
Testing Instructions
Automated validation:
JAVA_HOME='/Applications/Android Studio.app/Contents/jbr/Contents/Home' ./gradlew spotlessCheck :modules:services:repositories:testDebugUnitTestScreenshots or Screencast
Not applicable — no UI changes.
Checklist
./gradlew spotlessApplyto automatically apply formatting/linting)modules/services/localization/src/main/res/values/strings.xmlI have tested any UI changes...