Commit 7ec8d67e authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Prevent NPE in videos action mode

parent 62559ca6
......@@ -448,7 +448,7 @@ public class VideoGridFragment extends SortableFragment<VideoListAdapter> implem
}
menu.findItem(R.id.action_video_info).setVisible(count == 1);
menu.findItem(R.id.action_video_play).setVisible(AndroidUtil.isHoneycombOrLater || count == 1);
menu.findItem(R.id.action_video_append).setVisible(mService.hasMedia() && AndroidUtil.isHoneycombOrLater);
menu.findItem(R.id.action_video_append).setVisible(mService != null && mService.hasMedia() && AndroidUtil.isHoneycombOrLater);
return true;
}
......
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