move preferences to Player preferences
This commit is contained in:
parent
9e1fc56d84
commit
6fcd04ea36
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue