diff options
author | Ross Harrison <rtharrison86@gmail.com> | 2015-01-31 23:30:01 -0600 |
---|---|---|
committer | Ross Harrison <rtharrison86@gmail.com> | 2015-01-31 23:30:01 -0600 |
commit | 672c38e20ae5c72ab3527343eb75bbc6a61ec2f2 (patch) | |
tree | d4493a316448afa1735f1f9c92eb674e7fab6045 /core/src/main/java | |
parent | 9659c18d899349d9be1573fb9520defc7d3a19cd (diff) | |
download | AntennaPod-672c38e20ae5c72ab3527343eb75bbc6a61ec2f2.zip |
added preference, need to work into database
Diffstat (limited to 'core/src/main/java')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java b/core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java index d71d19433..7efc43429 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java @@ -377,7 +377,13 @@ public class DBWriter { context, itemIds[i]); if (item != null) { - queue.add(item); + // add item to either front ot back of queue + if(PreferenceManager){ + queue.add(0, item); + }else{ + queue.add(item); + } + queueModified = true; if (!item.isRead()) { item.setRead(true); |