Skip to content

Commit

Permalink
Fix resume Currently playing card
Browse files Browse the repository at this point in the history
  • Loading branch information
xwz committed Sep 16, 2015
1 parent e7e2ca8 commit ba1be4c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,10 @@ public void onPrepareLoad(Drawable placeHolderDrawable) {
});
}

protected abstract Class getVideoPlayerActivityClass();

private void updateMediaSessionIntent() {
Intent intent = new Intent(this, VideoPlayerActivity.class);
Intent intent = new Intent(this, getVideoPlayerActivityClass());
intent.putExtra(IContentManager.CONTENT_ID, mCurrentEpisode);
String[] others = mOtherEpisodeUrls.toArray(new String[mOtherEpisodeUrls.size()]);
intent.putExtra(IContentManager.OTHER_EPISODES, others);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ public class VideoPlayerActivity extends io.github.xwz.base.activities.VideoPlay
protected IContentManager getContentManger() {
return ContentManager.getInstance();
}

@Override
protected Class getVideoPlayerActivityClass() {
return VideoPlayerActivity.class;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ public class VideoPlayerActivity extends io.github.xwz.base.activities.VideoPlay
protected IContentManager getContentManger() {
return ContentManager.getInstance();
}

@Override
protected Class getVideoPlayerActivityClass() {
return VideoPlayerActivity.class;
}
}

0 comments on commit ba1be4c

Please sign in to comment.