user2199860
user2199860

Reputation: 818

Refresh Media in Android Auto MediaBrowserService

I have a MediaBrowserServiceCompat that is hooked up to Android Auto as a music player. Everything is peachy, onCreate, onGetRoot, and onLoadChildren are all called as they should be.

The problem is if the underlying music is changed (loading a new playlist, shuffling, etc) I can't figure out how to tell Android Auto that it needs to call onLoadChildren(...) again. Is there a way to tell it that things have changed? I tried calling:

 notifyChildrenChanged(rootId);

but that didn't seem to work.

Upvotes: 3

Views: 541

Answers (0)

Related Questions