Exemplo n.º 1
0
 protected void bindViewToMediaListItem(
     View paramView, Context paramContext, Cursor paramCursor, long paramLong) {
   int i = 1;
   Document localDocument = MusicUtils.getDocument(paramView);
   long l = paramCursor.getLong(0);
   String str1 = paramCursor.getString(i);
   if (paramCursor.getInt(2) != 0) ;
   while (true) {
     localDocument.setId(l);
     localDocument.setArtistId(l);
     localDocument.setTitle(str1);
     localDocument.setArtistName(str1);
     Document.Type localType = Document.Type.ARTIST;
     localDocument.setType(localType);
     localDocument.setHasLocal(i);
     if (!paramCursor.isNull(4)) {
       String str2 = paramCursor.getString(4);
       localDocument.setArtistMetajamId(str2);
     }
     if (!paramCursor.isNull(3)) {
       String str3 = paramCursor.getString(3);
       localDocument.setArtUrl(str3);
     }
     if (!(paramView instanceof PlayCardView)) return;
     PlayCardView localPlayCardView = (PlayCardView) paramView;
     PlayCardView.ContextMenuDelegate localContextMenuDelegate =
         ArtistGridFragment.this.mCardsContextMenuDelegate;
     localPlayCardView.bind(localDocument, localContextMenuDelegate);
     return;
     int j = 0;
   }
 }
Exemplo n.º 2
0
 private void populateDocumentFromCursor(Document paramDocument, Cursor paramCursor)
 {
   int i = 0;
   paramDocument.reset();
   Document.Type localType = Document.Type.TRACK;
   paramDocument.setType(localType);
   long l1 = paramCursor.getLong(i);
   paramDocument.setId(l1);
   if (!paramDocument.isNautilus())
   {
     int j = this.mAudioIdIdx;
     long l2 = paramCursor.getLong(j);
     paramDocument.setId(l2);
   }
   int k = this.mTitleIdx;
   String str1 = paramCursor.getString(k);
   paramDocument.setTitle(str1);
   long l3 = getPlaylistMemberId(paramCursor);
   paramDocument.setIdInParent(l3);
   int m = this.mAlbumIdIdx;
   long l4 = paramCursor.getLong(m);
   paramDocument.setAlbumId(l4);
   int n = this.mAlbumStoreIdIdx;
   if (!paramCursor.isNull(n))
   {
     int i1 = this.mAlbumStoreIdIdx;
     String str2 = paramCursor.getString(i1);
     paramDocument.setAlbumMetajamId(str2);
   }
   String str3 = getAlbum(paramCursor);
   paramDocument.setAlbumName(str3);
   String str4 = getTrackArtist(paramCursor);
   paramDocument.setArtistName(str4);
   int i2 = this.mTrackArtistIdIdx;
   long l5 = paramCursor.getLong(i2);
   paramDocument.setArtistId(l5);
   String str5 = getTrackMetajamId(paramCursor);
   paramDocument.setTrackMetajamId(str5);
   String str6 = getAlbumMetajamId(paramCursor);
   paramDocument.setAlbumMetajamId(str6);
   String str7 = getArtistMetajamId(paramCursor);
   paramDocument.setArtistMetajamId(str7);
   int i3 = this.mStoreSongIdx;
   if (!paramCursor.isNull(i3))
   {
     int i4 = this.mStoreSongIdx;
     String str8 = paramCursor.getString(i4);
     paramDocument.setSongStoreId(str8);
   }
   int i5 = this.mArtworkUrlIdx;
   if (!paramCursor.isNull(i5))
   {
     int i6 = this.mArtworkUrlIdx;
     String str9 = paramCursor.getString(i6);
     paramDocument.setArtUrl(str9);
   }
   int i7 = this.mDomainIdx;
   if (paramCursor.getInt(i7) == 4)
     i = 1;
   paramDocument.setIsNautilus(i);
 }