ImageView tags weren't set correctly

This commit is contained in:
daniel oeh 2013-02-25 20:54:55 +01:00
parent 6a22ada87f
commit 9cd870c6ee
3 changed files with 10 additions and 7 deletions

View File

@ -145,7 +145,8 @@ public class OrganizeQueueActivity extends SherlockListActivity {
holder.title.setText(item.getTitle()); holder.title.setText(item.getTitle());
holder.feedTitle.setText(item.getFeed().getTitle()); holder.feedTitle.setText(item.getFeed().getTitle());
holder.feedImage.setTag(item.getFeed().getImage()); holder.feedImage.setTag((item.getFeed().getImage() != null) ? item
.getFeed().getImage().getFile_url() : null);
ImageLoader.getInstance().loadThumbnailBitmap( ImageLoader.getInstance().loadThumbnailBitmap(
item.getFeed().getImage(), item.getFeed().getImage(),
holder.feedImage, holder.feedImage,
@ -168,7 +169,8 @@ public class OrganizeQueueActivity extends SherlockListActivity {
@Override @Override
public FeedItem getItem(int position) { public FeedItem getItem(int position) {
return FeedManager.getInstance().getQueueItemAtIndex(position, true); return FeedManager.getInstance()
.getQueueItemAtIndex(position, true);
} }
@Override @Override

View File

@ -161,7 +161,8 @@ public class ExternalEpisodesListAdapter extends BaseExpandableListAdapter {
holder.lenSize.setVisibility(View.INVISIBLE); holder.lenSize.setVisibility(View.INVISIBLE);
} }
holder.feedImage.setTag(item.getFeed().getImage()); holder.feedImage.setTag((item.getFeed().getImage() != null) ? item
.getFeed().getImage().getFile_url() : null);
ImageLoader.getInstance().loadThumbnailBitmap( ImageLoader.getInstance().loadThumbnailBitmap(
item.getFeed().getImage(), item.getFeed().getImage(),
holder.feedImage, holder.feedImage,

View File

@ -108,9 +108,9 @@ public class FeedlistAdapter extends BaseAdapter {
holder.inProgressEpisodesLabel.setVisibility(View.INVISIBLE); holder.inProgressEpisodesLabel.setVisibility(View.INVISIBLE);
} }
holder.image.setTag(feed.getImage()); final String imageUrl = (feed.getImage() != null) ? feed.getImage()
final String imageUrl = (feed.getImage() != null) ? .getFile_url() : null;
feed.getImage().getFile_url() : null; holder.image.setTag(imageUrl);
imageLoader.loadThumbnailBitmap( imageLoader.loadThumbnailBitmap(
feed.getImage(), feed.getImage(),
holder.image, holder.image,