Search in sources :

Example 6 with Playlist

use of com.andrew.apollo.model.Playlist in project frostwire by frostwire.

the class AddToPlaylistMenuAction method getMenuActions.

private List<MenuAction> getMenuActions() {
    List<MenuAction> actions = new ArrayList<>();
    actions.add(new CreateNewPlaylistMenuAction(getContext(), fds));
    List<Playlist> playlists = MusicUtils.getPlaylists(getContext());
    for (int i = 0; i < playlists.size(); i++) {
        final Playlist playlist = playlists.get(i);
        actions.add(new AddToThisPlaylistMenuAction(getContext(), playlist.mPlaylistId, playlist.mPlaylistName, fds));
    }
    return actions;
}
Also used : MenuAction(com.frostwire.android.gui.views.MenuAction) Playlist(com.andrew.apollo.model.Playlist) ArrayList(java.util.ArrayList)

Aggregations

Playlist (com.andrew.apollo.model.Playlist)6 ArrayList (java.util.ArrayList)3 Cursor (android.database.Cursor)2 ContentResolver (android.content.ContentResolver)1 Resources (android.content.res.Resources)1 SubMenu (android.view.SubMenu)1 AdapterView (android.widget.AdapterView)1 CreateNewPlaylist (com.andrew.apollo.menu.CreateNewPlaylist)1 Album (com.andrew.apollo.model.Album)1 Artist (com.andrew.apollo.model.Artist)1 Genre (com.andrew.apollo.model.Genre)1 Song (com.andrew.apollo.model.Song)1 DataHolder (com.andrew.apollo.ui.MusicViewHolder.DataHolder)1 MenuAction (com.frostwire.android.gui.views.MenuAction)1