Search in sources :

Example 6 with VideoGridFragment

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);
    }
}
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

VideoGridFragment (org.videolan.vlc.gui.video.VideoGridFragment)6 AudioBrowserFragment (org.videolan.vlc.gui.audio.AudioBrowserFragment)4 Intent (android.content.Intent)2 Bundle (android.os.Bundle)2 Fragment (android.support.v4.app.Fragment)2 Menu (android.view.Menu)2 MediaParsingService (org.videolan.vlc.MediaParsingService)2 StartActivity (org.videolan.vlc.StartActivity)2 AudioAlbumsSongsFragment (org.videolan.vlc.gui.audio.AudioAlbumsSongsFragment)2 BaseBrowserFragment (org.videolan.vlc.gui.browser.BaseBrowserFragment)2 MediaBrowserFragment (org.videolan.vlc.gui.browser.MediaBrowserFragment)2 StorageBrowserFragment (org.videolan.vlc.gui.browser.StorageBrowserFragment)2 PreferencesFragment (org.videolan.vlc.gui.preferences.PreferencesFragment)2 FileBrowserFragment (org.videolan.vlc.gui.browser.FileBrowserFragment)1 NetworkBrowserFragment (org.videolan.vlc.gui.browser.NetworkBrowserFragment)1 SortableFragment (org.videolan.vlc.gui.browser.SortableFragment)1 MRLPanelFragment (org.videolan.vlc.gui.network.MRLPanelFragment)1