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:
ByteHamster 2019-11-21 10:28:33 +01:00
parent a6e4c4756c
commit 4a6731d4e1
2 changed files with 2 additions and 1 deletions

View File

@ -76,6 +76,7 @@ public class PreferenceUpgrader {
}
UserPreferences.setQueueLocked(false);
prefs.edit().putBoolean(UserPreferences.PREF_STREAM_OVER_DOWNLOAD, false).apply();
if (!prefs.contains(UserPreferences.PREF_ENQUEUE_LOCATION)) {
final String keyOldPrefEnqueueFront = "prefQueueAddToFront";

View File

@ -82,7 +82,7 @@ public class UserPreferences {
private static final String PREF_RESUME_AFTER_CALL = "prefResumeAfterCall";
public static final String PREF_VIDEO_BEHAVIOR = "prefVideoBehavior";
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
private static final String PREF_ENQUEUE_DOWNLOADED = "prefEnqueueDownloaded";