use of org.videolan.vlc.gui.video.VideoGridFragment in project vlc-android by videolan.
the class ContentActivity method makeRoomForSearch.
// Hide options menu items to make room for filter EditText
protected void makeRoomForSearch(Fragment current, boolean hide) {
final Menu menu = mToolbar.getMenu();
menu.findItem(R.id.ml_menu_renderers).setVisible(!hide && showRenderers);
if (current instanceof SortableFragment) {
menu.findItem(R.id.ml_menu_sortby).setVisible(!hide && ((SortableFragment) current).isSortEnabled());
}
if (current instanceof VideoGridFragment || current instanceof AudioBrowserFragment) {
menu.findItem(R.id.ml_menu_last_playlist).setVisible(!hide);
}
}
Aggregations