From 4ed6abbaa9cc9c6a669afc87543bbf8459e680d7 Mon Sep 17 00:00:00 2001 From: Chaphasilor Date: Fri, 22 Nov 2024 20:34:28 +0100 Subject: [PATCH] enable low-priority on pause for Android by default - fixes #939, #795 --- lib/models/finamp_models.dart | 2 +- lib/models/finamp_models.g.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/models/finamp_models.dart b/lib/models/finamp_models.dart index 081f0b1a..3ddb923b 100644 --- a/lib/models/finamp_models.dart +++ b/lib/models/finamp_models.dart @@ -61,7 +61,7 @@ class FinampUser { const _isOfflineDefault = false; const _shouldTranscodeDefault = false; const _transcodeBitrateDefault = 320000; -const _androidStopForegroundOnPauseDefault = false; +const _androidStopForegroundOnPauseDefault = true; const _isFavouriteDefault = false; const _songShuffleItemCountDefault = 250; const _volumeNormalizationActiveDefault = true; diff --git a/lib/models/finamp_models.g.dart b/lib/models/finamp_models.g.dart index ba10b563..1919d6b3 100644 --- a/lib/models/finamp_models.g.dart +++ b/lib/models/finamp_models.g.dart @@ -71,7 +71,7 @@ class FinampSettingsAdapter extends TypeAdapter { transcodeBitrate: fields[2] == null ? 320000 : fields[2] as int, downloadLocations: (fields[3] as List).cast(), androidStopForegroundOnPause: - fields[4] == null ? false : fields[4] as bool, + fields[4] == null ? true : fields[4] as bool, showTabs: (fields[5] as Map).cast(), onlyShowFavourite: fields[6] == null ? false : fields[6] as bool, sortBy: fields[7] as SortBy, @@ -143,7 +143,7 @@ class FinampSettingsAdapter extends TypeAdapter { downloadTranscodingCodec: fields[43] as FinampTranscodingCodec?, downloadTranscodeBitrate: fields[45] as int?, shouldTranscodeDownloads: fields[44] == null - ? TranscodeDownloadsSetting.never + ? TranscodeDownloadsSetting.ask : fields[44] as TranscodeDownloadsSetting, shouldRedownloadTranscodes: fields[46] == null ? false : fields[46] as bool,