Skip to content

Instantly share code, notes, and snippets.

@kgilmer
Created August 26, 2018 21:41
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 kgilmer/7fd7be61460c7d6e78b074cc8012a39f to your computer and use it in GitHub Desktop.
Save kgilmer/7fd7be61460c7d6e78b074cc8012a39f to your computer and use it in GitHub Desktop.
/**
* This must be `by lazy` because the source won't initially be ready.
* See [MusicService.onLoadChildren] to see where it's accessed (and first
* constructed).
*/
private val browseTree: BrowseTree by lazy {
BrowseTree(mediaSource)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment