spotube/android/app/src/main/res/drawable/ic_shuffle_on.xml
gituser-vibes 95d2c72a18 feat(android-auto): browse & play playlists, Liked Songs and Discover Weekly
Implement the audio_service media-browser hooks so Android Auto (and other
media browsers) can browse the library and start playback:

- getChildren exposes Liked Songs, a "Browse" folder (the home / "Made for
  you" hub — including Discover Weekly, fetched via browse.sectionItems since
  the section preview omits it), and the user's saved playlists.
- Collections are browsable into their track list with a "Play all" entry;
  tapping a track plays the collection from that point.
- playFromMediaId resolves the selection and plays through the existing
  AudioPlayerNotifier.load pipeline.
- Add an explicit shuffle MediaControl + custom action (Android Auto does not
  reliably render a toggle from the standard ACTION_SET_SHUFFLE_MODE alone).
- Retry auth-sensitive requests: the stored token is often stale on cold
  start and the first call 401s before the plugin refreshes it.
- Browse-item artwork uses http(s) URLs only — the media-browser process
  cannot read app-private file:// paths.

The MediaBrowserService and automotive_app_desc.xml were already declared in
the manifest, so no native changes are required.
2026-06-24 14:51:01 -07:00

14 lines
618 B
XML

<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M10.59,9.17L5.41,4 4,5.41l5.17,5.17 1.42,-1.41zM14.5,4l2.04,2.04L4,18.59 5.41,20 17.96,7.46 20,9.5L20,4zM14.83,13.41l-1.41,1.41 3.13,3.13L14.5,20L20,20v-5.5l-2.04,2.04z" />
<!-- "on" indicator dot below the glyph -->
<path
android:fillColor="#FFFFFFFF"
android:pathData="M10.6,21 a1.4,1.4 0 1,0 2.8,0 a1.4,1.4 0 1,0 -2.8,0z" />
</vector>