diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-11-14 12:26:40 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-11-14 12:26:40 -0800 |
commit | afd7424305448076b6784d14340b2c9dc72a2644 (patch) | |
tree | f57184db0fb252d19636ef5653f842bcb2fe7ad7 /app/src/main/java | |
parent | dd48999aa8acdcf65dcf94f190885a2df2f83ea4 (diff) | |
download | dsub-afd7424305448076b6784d14340b2c9dc72a2644.tar.gz dsub-afd7424305448076b6784d14340b2c9dc72a2644.tar.bz2 dsub-afd7424305448076b6784d14340b2c9dc72a2644.zip |
Add menu for video podcasts for podcast specific functions
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java index 2b95af22..33ce0b20 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/SubsonicFragment.java @@ -228,12 +228,20 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR public void onCreateContextMenuSupport(Menu menu, MenuInflater menuInflater, UpdateView updateView, Object selected) { if(selected instanceof Entry) { Entry entry = (Entry) selected; - if(entry instanceof PodcastEpisode && !entry.isVideo()) { + if(entry instanceof PodcastEpisode) { if(Util.isOffline(context)) { - menuInflater.inflate(R.menu.select_podcast_episode_context_offline, menu); + if(entry.isVideo()) { + menuInflater.inflate(R.menu.select_video_context_offline, menu); + } else { + menuInflater.inflate(R.menu.select_podcast_episode_context_offline, menu); + } } else { - menuInflater.inflate(R.menu.select_podcast_episode_context, menu); + if(entry.isVideo()) { + menuInflater.inflate(R.menu.select_podcast_episode_video_context, menu); + } else { + menuInflater.inflate(R.menu.select_podcast_episode_context, menu); + } if(entry.getBookmark() == null) { menu.removeItem(R.id.bookmark_menu_delete); |