예제 #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;
   }
 }
예제 #2
0
 public View getView(int paramInt, View paramView, ViewGroup paramViewGroup) {
   View localView = super.getView(paramInt, paramView, paramViewGroup);
   if ((localView instanceof PlayCardView)) {
     PlayCardView localPlayCardView = (PlayCardView) localView;
     float f = ArtistGridFragment.this.mTileMetadata.getThumbnailAspectRatio();
     localPlayCardView.setThumbnailAspectRatio(f);
   }
   return localView;
 }
예제 #3
0
 protected void bindViewToLoadingItem(View paramView, Context paramContext) {
   if (!(paramView instanceof PlayCardView)) return;
   ((PlayCardView) paramView).bindLoading();
 }