diff options
author | Ross Harrison <rtharrison86@gmail.com> | 2015-02-08 11:48:55 -0600 |
---|---|---|
committer | Ross Harrison <rtharrison86@gmail.com> | 2015-02-08 11:48:55 -0600 |
commit | 6fcd04ea36bbbb7142a5752055c305cbf98f4d66 (patch) | |
tree | 30ddb003808b43f68a648c81308778ffdd1a32ba /core/src/main/java | |
parent | 9e1fc56d847dd69c34b10044bc2bf7cbd1d99ba8 (diff) | |
download | AntennaPod-6fcd04ea36bbbb7142a5752055c305cbf98f4d66.zip |
move preferences to Player preferences
Diffstat (limited to 'core/src/main/java')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/preferences/PlaybackPreferences.java | 3 | ||||
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/preferences/PlaybackPreferences.java b/core/src/main/java/de/danoeh/antennapod/core/preferences/PlaybackPreferences.java index d88543f73..81b6be6ac 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/preferences/PlaybackPreferences.java +++ b/core/src/main/java/de/danoeh/antennapod/core/preferences/PlaybackPreferences.java @@ -43,6 +43,9 @@ public class PlaybackPreferences implements /** True if last played media was a video. */ public static final String PREF_CURRENT_EPISODE_IS_VIDEO = "de.danoeh.antennapod.preferences.lastIsVideo"; + /** Value of PREF_QUEUE_ADD_TO_FRONT if no media is playing. */ + public static final String PREF_QUEUE_ADD_TO_FRONT = "prefQueueAddToFront"; + /** Value of PREF_CURRENTLY_PLAYING_MEDIA if no media is playing. */ public static final long NO_MEDIA_PLAYING = -1; 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 0ece66b08..0de04d64e 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 @@ -43,7 +43,6 @@ import java.util.concurrent.ThreadFactory; */ public class DBWriter { private static final String TAG = "DBWriter"; - private static final String PREF_QUEUE_ADD_TO_FRONT = "prefQueueAddToFront"; private static final ExecutorService dbExec; @@ -380,7 +379,7 @@ public class DBWriter { if (item != null) { // add item to either front ot back of queue boolean addToFront = PreferenceManager.getDefaultSharedPreferences(context) - .getBoolean(PREF_QUEUE_ADD_TO_FRONT, false); + .getBoolean(PlaybackPreferences.PREF_QUEUE_ADD_TO_FRONT, false); if(addToFront){ queue.add(0, item); |