Repository navigation
Add episode artwork setting to Android Automotive - #6407
joashrajin wants to merge 14 commits into
Conversation
Adds a "Use episode artwork" switch under a new Appearance section in the Automotive settings, and fills the gaps that kept episode artwork from showing in the car: - Browse lists the car is showing reload when the setting changes. - Episode artwork URIs carry the podcast artwork as a fallback, which the content provider serves when the episode image can't be loaded. The episode image gets 5 seconds when a fallback exists. - Now playing refreshes when an episode's image URL arrives, and uses embedded file artwork, matching the browse lists. - The first time the car opens a podcast's episode list, its show notes are fetched so episode artwork shows before anything is played. - The content provider decodes a thumbnail instead of the full image. - Media3 observers survive a playback service restart. Fixes #6305
|
Claude finished @joashrajin's task in 2m 1s —— View job I found no blocking problems. I traced these paths and they hold up:
I didn't build the project or run the tests. Non-blocking
|
Generated by 🚫 Danger |
A podcast's show notes were fetched once per process for episode artwork, so episodes that arrived in a later refresh kept the podcast artwork in the car list until played. Fetch again after an hour, and wait five minutes before retrying a failed fetch instead of retrying on every list load.
|
Claude finished @joashrajin's task in 17s —— View job I reviewed only the new commit, I didn't build the project or run the tests. |
- Every artwork lookup in the content provider now stops waiting after 10 seconds, or 5 for an episode image with a fallback. A download that misses the limit carries on in the background so the next request gets the image. Podcast artwork previously had no limit. - An exception in the episode artwork lookup no longer skips the fallback. - The show-notes retry interval is counted from when the fetch failed. - The Media3 observers subscribe once per process, since release() keeps them. - Tests for the time limits, the fallback after an error, the retry timing and the observer guard, plus small cleanups and long-line wrapping.
|
Claude finished @joashrajin's task in 20s —— View job I reviewed only the new commit, I didn't build the project or run the tests. |
The car caches artwork by link, so podcast artwork served while an episode image was slow or failing stayed on screen after the image arrived. An episode's artwork link is now marked as pending until its image is in the provider's disk cache, so the link changes once the image is downloaded. When a download the provider stopped waiting for finishes, the car's lists and now playing reload to pick up the new link. Phones on the older (non-Media3) session have no list refresh, so they get the new link the next time a list loads.
|
Claude finished @joashrajin's task in 52s —— View job I reviewed only the new commit, I didn't build the project or run the tests. |
A pending episode link only changes once its image is downloaded, so an image whose download failed kept the podcast artwork in the car. On a weak connection the download often fails after the provider stops waiting, when OkHttp's read timeout ends it. The provider now downloads a failed episode image again 30 seconds and then 2 minutes later, and the list refreshes when it arrives, as it does for a late download. Only images behind a pending link are retried, and only after network errors: an error from the image host, or an image that can't be decoded, would fail again.
The artwork fetch ran alongside the list load. For a podcast opened from search, loading the list is what saves the podcast, so the fetch found nothing and the episode artwork only showed the next time the list loaded. The fetch now starts after the list loads, and is skipped when the list fails to load.
|
Claude finished @joashrajin's task in 24s —— View job I reviewed only the new commits, I didn't build the project or run the tests. |
|
Claude finished @joashrajin's task in 12s —— View job The only new commit since my last review, |
…k-android-automotive-25f37d
|
Claude finished @joashrajin's task in 35s —— View job The only new commit since my last review, I didn't build the project or run the tests. |
The Instrumented tests job has failed on every pull request since 2026-11-17, and reading its log needs a Buildkite sign-in. GitHub shows only the job's exit status, so the job now exits with a code that says which stage failed: setup, the Gradle build (and whether a rebuild without the build cache passes), or Firebase Test Lab. The codes are listed at the top of the script. This is temporary and gets reverted before merging.
|
Claude finished @joashrajin's task in 36s —— View job I reviewed only the new commit, Blocking
I didn't run the script, build the project or run the tests. |
…it status" This reverts commit b5bdb33. The diagnostic run exited with 72: the Gradle build passed, and the Firebase Test Lab stage failed because the device or Android version the lane asks for (Pixel2.arm, API 30) isn't available.
|
Claude finished @joashrajin's task in 12s —— View job I reviewed only the new commit, I didn't build the project or run the tests. |
Firebase Test Lab retired the Pixel2.arm virtual device on 2026-11-17, so the Instrumented tests job has failed right after the build on every pull request since then. MediumPhone.arm is Firebase's replacement for Pixel 2 at the same API level, so the tests still run on API 30.
|
Claude finished @joashrajin's task in 13s —— View job I reviewed only the new commit, One thing to know: this CI fix is unrelated to the artwork feature, so it reaches I didn't run the Firebase job and didn't check that Firebase offers |
# Conflicts: # CHANGELOG.md
|
Claude finished @joashrajin's task in 21s —— View job The only new commit since my last review, I didn't build the project or run the tests. |
# Conflicts: # CHANGELOG.md
|
Claude finished @joashrajin's task in 22s —— View job The only new commit since my last review, I didn't build the project or run the tests. |
# Conflicts: # CHANGELOG.md
|
Claude finished @joashrajin's task in 16s —— View job The only new commit since my last review, I didn't build the project or run the tests. |
Description
Adds a Use episode artwork switch to the Android Automotive settings, under a new Appearance section. Episodes with their own artwork now show it in the car. The switch reuses the existing setting, strings and analytics event.
To make the artwork show reliably in the car:
Fixes #6305 · Linear: PCDROID-851
Notes for reviewers:
EpisodeManager.updateImageUrlsnow returnsBoolean, so Mockito mocks that reach it need a stub.Testing Instructions
:automotiveon an Android Automotive emulator (API 34; if boot hangs, start it with-gpu swiftshader_indirect).Screenshots or Screencast
Before (setting off) and after (setting on), on the Android Automotive 14 emulator:
Settings switch

Episode list reloads with each episode's artwork

Now playing shows the episode's artwork

Checklist
./gradlew spotlessApplyto automatically apply formatting/linting)modules/services/localization/src/main/res/values/strings.xmlI have tested any UI changes...