summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2013-09-11 13:56:23 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2013-09-11 13:56:23 +0200
commit697afbd5a61a2eb217e4b637b4f3dfb02ae0fd67 (patch)
treeb037d778b207f9d3c3abdacc4c149b973af0016d /src/de/danoeh/antennapod
parent613fbce28322f71315f3a468c5d3a584c6cd84e9 (diff)
downloadAntennaPod-697afbd5a61a2eb217e4b637b4f3dfb02ae0fd67.zip
"markFeedRead" and "markAllItemsRead" did not work correctly
Diffstat (limited to 'src/de/danoeh/antennapod')
-rw-r--r--src/de/danoeh/antennapod/storage/DBWriter.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/de/danoeh/antennapod/storage/DBWriter.java b/src/de/danoeh/antennapod/storage/DBWriter.java
index 74d84ef20..569411ae2 100644
--- a/src/de/danoeh/antennapod/storage/DBWriter.java
+++ b/src/de/danoeh/antennapod/storage/DBWriter.java
@@ -567,6 +567,7 @@ public class DBWriter {
itemCursor.moveToFirst();
for (int i = 0; i < itemIds.length; i++) {
itemIds[i] = itemCursor.getLong(PodDBAdapter.KEY_ID_INDEX);
+ itemCursor.moveToNext();
}
itemCursor.close();
adapter.setFeedItemRead(true, itemIds);
@@ -595,6 +596,7 @@ public class DBWriter {
itemCursor.moveToFirst();
for (int i = 0; i < itemIds.length; i++) {
itemIds[i] = itemCursor.getLong(PodDBAdapter.KEY_ID_INDEX);
+ itemCursor.moveToNext();
}
itemCursor.close();
adapter.setFeedItemRead(true, itemIds);