Skip to content

Commit

Permalink
modified tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Junji Watanabe committed Feb 27, 2013
1 parent 84f3688 commit cc215ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/com/junj/imagerssreader/RssParserTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public RssListAdapter parseXml(InputStream is) throws IOException,XmlPullParserE
XmlPullParser parser = Xml.newPullParser();
int i = 0;
int itemNum = 10;
//debug
System.out.println("parse start!");

try {

Expand Down
2 changes: 1 addition & 1 deletion src/com/junj/imagerssreader/RssReaderActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

public class RssReaderActivity extends ListActivity {
public static final int MENU_ITEM_RELOAD = Menu.FIRST;
public static final String RSS_FEED_URL = "https://picasaweb.google.com/data/feed/base/featured?alt=rss&kind=photo&access=public&slabel=featured&imgmax=1600&hl=ja";
public static final String RSS_FEED_URL = "https://picasaweb.google.com/data/feed/base/featured?alt=rss";
private ArrayList<Item> mItems;
private RssListAdapter mAdapter;

Expand Down
4 changes: 3 additions & 1 deletion src/com/junj/imagerssreader/WebImageLoaderTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
public class WebImageLoaderTask extends AsyncTask<String, Void, Bitmap> {
private ImageView mImageView;
private String mUrl;
private String mTag;

public WebImageLoaderTask(ImageView iv) {
mImageView = iv;
mTag = mImageView.getTag().toString();
}

@Override
Expand Down Expand Up @@ -52,7 +54,7 @@ protected Bitmap doInBackground(String... params) {

@Override
protected void onPostExecute(Bitmap result) {
if (mImageView.getTag() == mUrl) {
if (mTag.equals(mImageView.getTag())) {
mImageView.setImageBitmap(result);
}
}
Expand Down

0 comments on commit cc215ed

Please sign in to comment.