Merge pull request #3628 from ByteHamster/explicitly-set-streaming

Explicitly set default download/streaming value for existing users
This commit is contained in:
H. Lehmann 2019-11-21 14:08:50 +01:00 committed by GitHub
commit 6c0f773188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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";