diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-12-18 17:27:22 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-12-18 17:27:22 +0100 |
commit | aa7e58dc42f05f94954a0a4ca6f03420d4c97a74 (patch) | |
tree | af2b2a3d2f995f45e5aca483ec5abf1b6ad13109 /src/de/danoeh/antennapod/feed/SimpleChapter.java | |
parent | d07afe16ae5235a4da4018997d66323fcf6b2b45 (diff) | |
download | AntennaPod-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.java | 10 |
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; + } + } } |