Commit 9bf18919 authored by Geoffrey Métais's avatar Geoffrey Métais

Fix crash on group context menu

parent 57759089
......@@ -342,9 +342,11 @@ public class VideoGridFragment extends MediaBrowserFragment implements ISortable
return;
MenuInflater inflater = getActivity().getMenuInflater();
inflater.inflate(media instanceof MediaGroup ? R.menu.video_group_contextual : R.menu.video_list, menu);
if (media instanceof MediaGroup && !AndroidUtil.isHoneycombOrLater()) {
menu.findItem(R.id.video_list_append).setVisible(false);
menu.findItem(R.id.video_group_play).setVisible(false);
if (media instanceof MediaGroup) {
if (!AndroidUtil.isHoneycombOrLater()) {
menu.findItem(R.id.video_list_append).setVisible(false);
menu.findItem(R.id.video_group_play).setVisible(false);
}
} else
setContextMenuItems(menu, media);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment