summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/feed/SimpleChapter.java
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-12-18 17:27:22 +0100
committerdaniel oeh <daniel.oeh@gmail.com>2012-12-18 17:27:22 +0100
commitaa7e58dc42f05f94954a0a4ca6f03420d4c97a74 (patch)
treeaf2b2a3d2f995f45e5aca483ec5abf1b6ad13109 /src/de/danoeh/antennapod/feed/SimpleChapter.java
parentd07afe16ae5235a4da4018997d66323fcf6b2b45 (diff)
downloadAntennaPod-aa7e58dc42f05f94954a0a4ca6f03420d4c97a74.zip
Added "updateFromOther" and "compareWithOther" methods
Diffstat (limited to 'src/de/danoeh/antennapod/feed/SimpleChapter.java')
-rw-r--r--src/de/danoeh/antennapod/feed/SimpleChapter.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/de/danoeh/antennapod/feed/SimpleChapter.java b/src/de/danoeh/antennapod/feed/SimpleChapter.java
index 7b74f28f6..3dab1b74d 100644
--- a/src/de/danoeh/antennapod/feed/SimpleChapter.java
+++ b/src/de/danoeh/antennapod/feed/SimpleChapter.java
@@ -12,4 +12,14 @@ public class SimpleChapter extends Chapter {
return CHAPTERTYPE_SIMPLECHAPTER;
}
+ public void updateFromOther(SimpleChapter other) {
+ super.updateFromOther(other);
+ start = other.start;
+ if (other.title != null) {
+ title = other.title;
+ }
+ if (other.link != null) {
+ link = other.link;
+ }
+ }
}