app/src/main/java/com/smedic/tubtub/fragments/PlaylistsFragment.java
private void removePlaylist(final String playlistId) {
        YouTubeSqlDb.getInstance().playlists().delete(playlistId);

        for (YouTubePlaylist playlist : playlists) {
            if (playlist.getId().equals(playlistId)) {
                playlists.remove(playlist);
                break;
            }
        }

        playlistsAdapter.notifyDataSetChanged();
    }
/**
     * Remove playlist with specific ID from DB and list
     *
     * @param playlistId
     */
Remove playlist with specific ID from DB and list
@param playlistId
Remove playlist with specific ID from DB and list @param playlistId
private void removePlaylist(final String playlistId) {
        YouTubeSqlDb.getInstance().playlists().delete(playlistId);
        for (YouTubePlaylist playlist : playlists) {
            if (playlist.getId().equals(playlistId)) {
                playlists.remove(playlist);
                break;
            }
        }
        playlistsAdapter.notifyDataSetChanged();
    }
private void removePlaylist ( final String playlistId ) { YouTubeSqlDb . getInstance ( ) . playlists ( ) . delete ( playlistId ) ; for ( YouTubePlaylist playlist : playlists ) { if ( playlist . getId ( ) . equals ( playlistId ) ) { playlists . remove ( playlist ) ; break ; } } playlistsAdapter . notifyDataSetChanged ( ) ; }
Remove playlist with specific ID from DB and list
 @param playlistId
Remove playlist with specific ID from DB and list @param playlistId