Exemple #1
0
 @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();
   }
 }
Exemple #2
0
 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());
 }