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.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(
item.getFeed().getImage(),
holder.feedImage,
@ -168,7 +169,8 @@ public class OrganizeQueueActivity extends SherlockListActivity {
@Override
public FeedItem getItem(int position) {
return FeedManager.getInstance().getQueueItemAtIndex(position, true);
return FeedManager.getInstance()
.getQueueItemAtIndex(position, true);
}
@Override

View File

@ -161,7 +161,8 @@ public class ExternalEpisodesListAdapter extends BaseExpandableListAdapter {
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(
item.getFeed().getImage(),
holder.feedImage,

View File

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