Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/nl/matshofman/saxrssreader/RssHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public void startElement(String uri, String localName, String qName, Attributes

if(qName.equals("item") && rssFeed != null) {
rssItem = new RssItem();
rssItem.setFeed(rssFeed);
rssFeed.addRssItem(rssItem);
}
}
Expand Down Expand Up @@ -76,7 +75,7 @@ public void endElement(String uri, String localName, String qName) {
} catch (InvocationTargetException e) {
}

} else if (rssItem != null) {
} else {
// Parse item properties

try {
Expand Down
11 changes: 0 additions & 11 deletions src/nl/matshofman/saxrssreader/RssItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

public class RssItem implements Comparable<RssItem>, Parcelable {

private RssFeed feed;
private String title;
private String link;
private Date pubDate;
Expand All @@ -46,7 +45,6 @@ public RssItem(Parcel source) {
pubDate = (Date) data.getSerializable("pubDate");
description = data.getString("description");
content = data.getString("content");
feed = data.getParcelable("feed");

}

Expand All @@ -59,7 +57,6 @@ public void writeToParcel(Parcel dest, int flags) {
data.putSerializable("pubDate", pubDate);
data.putString("description", description);
data.putString("content", content);
data.putParcelable("feed", feed);
dest.writeBundle(data);
}

Expand All @@ -77,14 +74,6 @@ public int describeContents() {
return 0;
}

public RssFeed getFeed() {
return feed;
}

public void setFeed(RssFeed feed) {
this.feed = feed;
}

public String getTitle() {
return title;
}
Expand Down