summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/feed/FeedItem.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/danoeh/antennapod/feed/FeedItem.java')
-rw-r--r--src/de/danoeh/antennapod/feed/FeedItem.java25
1 files changed, 2 insertions, 23 deletions
diff --git a/src/de/danoeh/antennapod/feed/FeedItem.java b/src/de/danoeh/antennapod/feed/FeedItem.java
index 06fdc4292..bb176c411 100644
--- a/src/de/danoeh/antennapod/feed/FeedItem.java
+++ b/src/de/danoeh/antennapod/feed/FeedItem.java
@@ -4,7 +4,7 @@ import java.lang.ref.SoftReference;
import java.util.Date;
import java.util.List;
-import de.danoeh.antennapod.PodcastApp;
+import de.danoeh.antennapod.preferences.PlaybackPreferences;
/**
* Data Object for a XML message
@@ -92,27 +92,6 @@ public class FeedItem extends FeedComponent {
contentEncoded = null;
}
- /** Get the chapter that fits the position. */
- public Chapter getCurrentChapter(int position) {
- Chapter current = null;
- if (chapters != null) {
- current = chapters.get(0);
- for (Chapter sc : chapters) {
- if (sc.getStart() > position) {
- break;
- } else {
- current = sc;
- }
- }
- }
- return current;
- }
-
- /** Calls getCurrentChapter with current position. */
- public Chapter getCurrentChapter() {
- return getCurrentChapter(media.getPosition());
- }
-
/**
* Returns the value that uniquely identifies this FeedItem. If the
* itemIdentifier attribute is not null, it will be returned. Else it will
@@ -234,7 +213,7 @@ public class FeedItem extends FeedComponent {
private boolean isPlaying() {
if (media != null) {
- if (PodcastApp.getCurrentlyPlayingMediaId() == media.getId()) {
+ if (PlaybackPreferences.getCurrentlyPlayingFeedMediaId() == media.getId()) {
return true;
}
}