summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2018-06-06 00:08:22 +0200
committerByteHamster <info@bytehamster.com>2018-06-06 00:08:22 +0200
commiteba0817ee047272d8d8a8ef7f5392638bae40741 (patch)
tree2350cfc3e8a5100001d456595ce2478fd9c4f007
parentabb13dc447f3ab4663507cd23a5bca0a39263874 (diff)
downloadAntennaPod-eba0817ee047272d8d8a8ef7f5392638bae40741.zip
Prevent crash
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java5
1 files changed, 0 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 b090f30a1..5eb5145e8 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
@@ -200,14 +200,9 @@ public final class DBReader {
private static List<FeedItem> extractItemlistFromCursor(PodDBAdapter adapter, Cursor cursor) {
List<FeedItem> result = new ArrayList<>(cursor.getCount());
- LongList imageIds = new LongList(cursor.getCount());
LongList itemIds = new LongList(cursor.getCount());
if (cursor.moveToFirst()) {
do {
- int indexImage = cursor.getColumnIndex(PodDBAdapter.KEY_IMAGE);
- long imageId = cursor.getLong(indexImage);
- imageIds.add(imageId);
-
FeedItem item = FeedItem.fromCursor(cursor);
result.add(item);
itemIds.add(item.getId());