summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2020-04-03 11:53:25 +0200
committerByteHamster <info@bytehamster.com>2020-04-03 11:58:59 +0200
commit5a5396625066e9fbb07d9399dc6d24b29da21d75 (patch)
tree538e28a38e311322e170953db69295275ba8214c /core
parent4855f2386d121d30963beb96e0105dad3096b50d (diff)
downloadAntennaPod-5a5396625066e9fbb07d9399dc6d24b29da21d75.zip
Only load chapters when actually needed
Diffstat (limited to 'core')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java b/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java
index f30cbcd05..c30f46315 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java
@@ -590,9 +590,6 @@ public final class DBReader {
if (!list.isEmpty()) {
item = list.get(0);
loadAdditionalFeedItemListData(list);
- if (item.hasChapters()) {
- loadChaptersOfFeedItem(adapter, item);
- }
}
}
return item;
@@ -608,8 +605,7 @@ public final class DBReader {
* than one FeedItem because this method might query the database several times for each item.
*
* @param itemId The ID of the FeedItem
- * @return The FeedItem or null if the FeedItem could not be found. All FeedComponent-attributes
- * as well as chapter marks of the FeedItem will also be loaded from the database.
+ * @return The FeedItem or null if the FeedItem could not be found.
*/
@Nullable
public static FeedItem getFeedItem(final long itemId) {