move preferences to Player preferences

This commit is contained in:
Ross Harrison 2015-02-08 11:48:55 -06:00
parent 9e1fc56d84
commit 6fcd04ea36
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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);