diff options
author | ByteHamster <info@bytehamster.com> | 2018-06-06 00:08:22 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2018-06-06 00:08:22 +0200 |
commit | eba0817ee047272d8d8a8ef7f5392638bae40741 (patch) | |
tree | 2350cfc3e8a5100001d456595ce2478fd9c4f007 | |
parent | abb13dc447f3ab4663507cd23a5bca0a39263874 (diff) | |
download | AntennaPod-eba0817ee047272d8d8a8ef7f5392638bae40741.zip |
Prevent crash
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java | 5 |
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()); |