Esempio n. 1
0
 @Override
 public void setId(long id) {
   super.setId(id);
   if (preferences != null) {
     preferences.setFeedID(id);
   }
 }
Esempio n. 2
0
 public void updateFromOther(Feed other) {
   super.updateFromOther(other);
   if (other.title != null) {
     title = other.title;
   }
   if (other.feedIdentifier != null) {
     feedIdentifier = other.feedIdentifier;
   }
   if (other.link != null) {
     link = other.link;
   }
   if (other.description != null) {
     description = other.description;
   }
   if (other.language != null) {
     language = other.language;
   }
   if (other.author != null) {
     author = other.author;
   }
   if (other.paymentLink != null) {
     paymentLink = other.paymentLink;
   }
   if (other.flattrStatus != null) {
     flattrStatus = other.flattrStatus;
   }
   // this feed's nextPage might already point to a higher page, so we only update the nextPage
   // value
   // if this feed is not paged and the other feed is.
   if (!this.paged && other.paged) {
     this.paged = other.paged;
     this.nextPageLink = other.nextPageLink;
   }
 }