Search in sources :

Example 1 with AudioAlbumsSongsFragment

use of org.videolan.vlc.gui.audio.AudioAlbumsSongsFragment in project vlc-android by GeoffreyMetais.

the class SecondaryActivity method fetchSecondaryFragment.

public void fetchSecondaryFragment(String id) {
    switch(id) {
        case ALBUMS_SONGS:
            mFragment = new AudioAlbumsSongsFragment();
            Bundle args = new Bundle();
            args.putParcelable(AudioBrowserFragment.TAG_ITEM, getIntent().getParcelableExtra(AudioBrowserFragment.TAG_ITEM));
            mFragment.setArguments(args);
            break;
        case ABOUT:
            mFragment = new AboutFragment();
            break;
        case VIDEO_GROUP_LIST:
            mFragment = new VideoGridFragment();
            ((VideoGridFragment) mFragment).setGroup(getIntent().getStringExtra("param"));
            break;
        case STORAGE_BROWSER:
            mFragment = new StorageBrowserFragment();
            break;
        default:
            throw new IllegalArgumentException("Wrong fragment id.");
    }
}
Also used : AudioAlbumsSongsFragment(org.videolan.vlc.gui.audio.AudioAlbumsSongsFragment) Bundle(android.os.Bundle) StorageBrowserFragment(org.videolan.vlc.gui.browser.StorageBrowserFragment) VideoGridFragment(org.videolan.vlc.gui.video.VideoGridFragment)

Example 2 with AudioAlbumsSongsFragment

use of org.videolan.vlc.gui.audio.AudioAlbumsSongsFragment in project vlc-android by videolan.

the class SecondaryActivity method fetchSecondaryFragment.

public void fetchSecondaryFragment(String id) {
    switch(id) {
        case ALBUMS_SONGS:
            mFragment = new AudioAlbumsSongsFragment();
            Bundle args = new Bundle();
            args.putParcelable(AudioBrowserFragment.TAG_ITEM, getIntent().getParcelableExtra(AudioBrowserFragment.TAG_ITEM));
            mFragment.setArguments(args);
            break;
        case ABOUT:
            mFragment = new AboutFragment();
            break;
        case VIDEO_GROUP_LIST:
            mFragment = new VideoGridFragment();
            ((VideoGridFragment) mFragment).setGroup(getIntent().getStringExtra("param"));
            break;
        case STORAGE_BROWSER:
            mFragment = new StorageBrowserFragment();
            break;
        default:
            throw new IllegalArgumentException("Wrong fragment id.");
    }
}
Also used : AudioAlbumsSongsFragment(org.videolan.vlc.gui.audio.AudioAlbumsSongsFragment) Bundle(android.os.Bundle) StorageBrowserFragment(org.videolan.vlc.gui.browser.StorageBrowserFragment) VideoGridFragment(org.videolan.vlc.gui.video.VideoGridFragment)

Aggregations

Bundle (android.os.Bundle)2 AudioAlbumsSongsFragment (org.videolan.vlc.gui.audio.AudioAlbumsSongsFragment)2 StorageBrowserFragment (org.videolan.vlc.gui.browser.StorageBrowserFragment)2 VideoGridFragment (org.videolan.vlc.gui.video.VideoGridFragment)2