Explicitly set default download/streaming value for existing users
This mankes it easier to change the default later without affecting existing installs
This commit is contained in:
parent
a6e4c4756c
commit
4a6731d4e1
|
@ -76,6 +76,7 @@ public class PreferenceUpgrader {
|
||||||
}
|
}
|
||||||
|
|
||||||
UserPreferences.setQueueLocked(false);
|
UserPreferences.setQueueLocked(false);
|
||||||
|
prefs.edit().putBoolean(UserPreferences.PREF_STREAM_OVER_DOWNLOAD, false).apply();
|
||||||
|
|
||||||
if (!prefs.contains(UserPreferences.PREF_ENQUEUE_LOCATION)) {
|
if (!prefs.contains(UserPreferences.PREF_ENQUEUE_LOCATION)) {
|
||||||
final String keyOldPrefEnqueueFront = "prefQueueAddToFront";
|
final String keyOldPrefEnqueueFront = "prefQueueAddToFront";
|
||||||
|
|
|
@ -82,7 +82,7 @@ public class UserPreferences {
|
||||||
private static final String PREF_RESUME_AFTER_CALL = "prefResumeAfterCall";
|
private static final String PREF_RESUME_AFTER_CALL = "prefResumeAfterCall";
|
||||||
public static final String PREF_VIDEO_BEHAVIOR = "prefVideoBehavior";
|
public static final String PREF_VIDEO_BEHAVIOR = "prefVideoBehavior";
|
||||||
private static final String PREF_TIME_RESPECTS_SPEED = "prefPlaybackTimeRespectsSpeed";
|
private static final String PREF_TIME_RESPECTS_SPEED = "prefPlaybackTimeRespectsSpeed";
|
||||||
private static final String PREF_STREAM_OVER_DOWNLOAD = "prefStreamOverDownload";
|
public static final String PREF_STREAM_OVER_DOWNLOAD = "prefStreamOverDownload";
|
||||||
|
|
||||||
// Network
|
// Network
|
||||||
private static final String PREF_ENQUEUE_DOWNLOADED = "prefEnqueueDownloaded";
|
private static final String PREF_ENQUEUE_DOWNLOADED = "prefEnqueueDownloaded";
|
||||||
|
|
Loading…
Reference in New Issue