private void getArtistData ( ) { mRetrievedTracks . clear ( ) ; mAdapter . notifyDataSetChanged ( ) ; mTracksSubscription = mCheerleaderClient . getArtistTracks ( ) . subscribeOn ( Schedulers . io ( ) ) . observeOn ( AndroidSchedulers . mainThread ( ) ) . subscribe ( displayTracks ( ) ) ; mProfileSubscription = mCheerleaderClient . getArtistProfile ( ) . observeOn ( AndroidSchedulers . mainThread ( ) ) . subscribeOn ( Schedulers . io ( ) ) . subscribe ( displayArtist ( ) ) ; }
Used to retrieved the tracks of the artist as well as artist details .