@Override protected void add(Item item, boolean replace, boolean play) { Music music = (Music) item; try { app.oMPDAsyncHelper.oMPD.add(music, replace, play); Tools.notifyUser( String.format( getResources().getString(R.string.songAdded, music.getTitle()), music.getName()), getActivity()); } catch (MPDServerException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
public PlaylistSong(Music m) { super( m.getAlbum(), m.getArtist(), m.getAlbumArtist(), m.getFullpath(), m.getDisc(), m.getDate(), m.getTime(), m.getParentDirectory(), m.getTitle(), m.getTotalTracks(), m.getTrack(), m.getSongId(), m.getPos(), m.getName()); }