diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2013-09-11 13:56:23 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2013-09-11 13:56:23 +0200 |
commit | 697afbd5a61a2eb217e4b637b4f3dfb02ae0fd67 (patch) | |
tree | b037d778b207f9d3c3abdacc4c149b973af0016d /src/de/danoeh/antennapod | |
parent | 613fbce28322f71315f3a468c5d3a584c6cd84e9 (diff) | |
download | AntennaPod-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.java | 2 |
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); |