diff options
author | ByteHamster <info@bytehamster.com> | 2020-04-03 11:53:25 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-04-03 11:58:59 +0200 |
commit | 5a5396625066e9fbb07d9399dc6d24b29da21d75 (patch) | |
tree | 538e28a38e311322e170953db69295275ba8214c /core | |
parent | 4855f2386d121d30963beb96e0105dad3096b50d (diff) | |
download | AntennaPod-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.java | 6 |
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) { |