mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-22 15:28:45 +02:00
1.5 KiB
Vendored
1.5 KiB
Vendored
Local audio_service 0.18.19 patch
Source: the published audio_service 0.18.19 package (MIT; see LICENSE).
Only runtime sources are vendored. This replaces the same dependency, without
adding another playback engine or native SDK.
- Android: include custom media actions in MediaStyle notifications on Android 12 and older. Upstream exposes them only through PlaybackState, which hides them on those versions. Keep custom action order and compact indices aligned.
- Android: allow a custom action to supply an explicit in-app activity class
using the
spotiflac.activityextra. Its notification PendingIntent opens the output picker directly. These activity controls are excluded from PlaybackState custom actions: background launches from media-session binder callbacks are blocked on newer Android. Use its native output switcher. This is only for app-owned controls, not extension input. - Android: bound retained browser metadata to 256 recent items with
PinnedMetadataCache. The active queue and current item stay pinned so notification, Android Auto and browser lookups survive recent-item eviction. Replacing the queue and clearing the service release their pinned metadata.
Android 13+ still chooses the positions and built-in transport icons in System UI. We preserve real play/pause/previous/next semantics for headsets, lock screen and Android Auto instead of disguising them as unrelated custom actions.
When upgrading, compare these changes against the matching upstream files.