public void setupMediaBarView() {
   if (podcastPlayer.isStopped()) {
     hideMediaBarView();
   } else {
     showMediaBarView();
   }
 }
 public void onMediaBarViewClicked(View v) {
   Intent intent = new Intent(v.getContext(), EpisodeDetailActivity.class);
   intent.putExtra(
       EpisodeListActivity.EXTRA_EPISODE_ID, podcastPlayer.getEpisode().getEpisodeId());
   episodeListView.launchIntent(intent);
 }
 @Override
 public void onDestroy() {
   if (podcastPlayer.isPaused() && podcastPlayer.getService() != null) {
     podcastPlayer.getService().stopSelf();
   }
 }
 private void showMediaBarView() {
   Episode episode = podcastPlayer.getEpisode();
   episodeListView.showMediaBarView(episode);
 }