Allow apps to be exempted from BG updates (#822)

This commit is contained in:
Imran Remtulla
2023-08-28 20:02:09 -04:00
parent 551643b11c
commit bd8f608ee6
14 changed files with 20 additions and 1 deletions

View File

@@ -366,6 +366,9 @@ class AppsProvider with ChangeNotifier {
if (!settingsProvider.enableBackgroundUpdates) {
return false;
}
if (app.additionalSettings['examptFromBackgroundUpdates'] == true) {
return false;
}
if (app.apkUrls.length > 1) {
// Manual API selection means silent install is not possible
return false;

View File

@@ -425,7 +425,11 @@ abstract class AppSource {
GeneratedFormSwitch('autoApkFilterByArch',
label: tr('autoApkFilterByArch'), defaultValue: true)
],
[GeneratedFormTextField('appName', label: tr('appName'), required: false)]
[GeneratedFormTextField('appName', label: tr('appName'), required: false)],
[
GeneratedFormSwitch('examptFromBackgroundUpdates',
label: tr('examptFromBackgroundUpdates'))
]
];
// Previous 2 variables combined into one at runtime for convenient usage