示例#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();
   }
 }
示例#2
0
文件: PlaylistSong.java 项目: 8u/dmix
 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());
 }