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 | |
parent | 9659c18d899349d9be1573fb9520defc7d3a19cd (diff) | |
download | AntennaPod-672c38e20ae5c72ab3527343eb75bbc6a61ec2f2.zip |
added preference, need to work into database
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java | 8 | ||||
-rw-r--r-- | core/src/main/res/values/strings.xml | 2 |
2 files changed, 9 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); diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index 86f46a330..532b5d75d 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -257,6 +257,8 @@ <string name="pref_persistNotify_title">Persistent playback controls</string> <string name="pref_persistNotify_sum">Keep notification and lockscreen controls when playback is paused.</string> <string name="pref_expand_notify_unsupport_toast">Android versions before 4.1 do not support expanded notifications.</string> + <string name="pref_queueAddToFront_sum">Add new episodes to the front of the queue.</string> + <string name="pref_queueAddToFront_title">Enqueue at front.</string> <!-- Auto-Flattr dialog --> <string name="auto_flattr_enable">Enable automatic flattring</string> |