예제 #1
0
 public void setupMediaBarView() {
   if (podcastPlayer.isStopped()) {
     hideMediaBarView();
   } else {
     showMediaBarView();
   }
 }
예제 #2
0
 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);
 }
예제 #3
0
 @Override
 public void onDestroy() {
   if (podcastPlayer.isPaused() && podcastPlayer.getService() != null) {
     podcastPlayer.getService().stopSelf();
   }
 }
예제 #4
0
 private void showMediaBarView() {
   Episode episode = podcastPlayer.getEpisode();
   episodeListView.showMediaBarView(episode);
 }