Search in sources :

Example 1 with SortableFragment

use of org.videolan.vlc.gui.browser.SortableFragment 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);
    }
}
Also used : AudioBrowserFragment(org.videolan.vlc.gui.audio.AudioBrowserFragment) Menu(android.view.Menu) SortableFragment(org.videolan.vlc.gui.browser.SortableFragment) VideoGridFragment(org.videolan.vlc.gui.video.VideoGridFragment)

Aggregations

Menu (android.view.Menu)1 AudioBrowserFragment (org.videolan.vlc.gui.audio.AudioBrowserFragment)1 SortableFragment (org.videolan.vlc.gui.browser.SortableFragment)1 VideoGridFragment (org.videolan.vlc.gui.video.VideoGridFragment)1