Skip to content

Instantly share code, notes, and snippets.

@IMoHaMeDHaMdYI
Last active January 27, 2019 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IMoHaMeDHaMdYI/ce9aa2d08df6d85c935d66ff97025c96 to your computer and use it in GitHub Desktop.
Save IMoHaMeDHaMdYI/ce9aa2d08df6d85c935d66ff97025c96 to your computer and use it in GitHub Desktop.
class MusicService : MediaBrowserServiceCompat() {
override fun onLoadChildren(parentId: String, result: Result<MutableList<MediaBrowserCompat.MediaItem>>) {
}
override fun onGetRoot(clientPackageName: String, clientUid: Int, rootHints: Bundle?): BrowserRoot? {
return BrowserRoot("", null)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment