This commit is contained in:
Imran Remtulla
2023-10-06 19:34:08 -04:00
parent 21fdfc1eef
commit e9e9adb174

View File

@@ -1458,7 +1458,8 @@ Future<void> bgUpdateCheck(int taskId, Map<String, dynamic>? params) async {
if (toThrow.isNotEmpty) { if (toThrow.isNotEmpty) {
for (var element in toThrow) { for (var element in toThrow) {
notificationsProvider.notify(ErrorCheckingUpdatesNotification( notificationsProvider.notify(ErrorCheckingUpdatesNotification(
'${element.key}: ${element.value.toString()}')); '${element.key}: ${element.value.toString()}',
id: Random().nextInt(10000)));
} }
} }
@@ -1469,7 +1470,9 @@ Future<void> bgUpdateCheck(int taskId, Map<String, dynamic>? params) async {
AndroidAlarmManager.oneShot( AndroidAlarmManager.oneShot(
Duration(seconds: retryAfterXSeconds), taskId + 1, bgUpdateCheck, Duration(seconds: retryAfterXSeconds), taskId + 1, bgUpdateCheck,
params: { params: {
'toCheck': toRetry, 'toCheck': toRetry
.map((entry) => {'key': entry.key, 'value': entry.value})
.toList(),
'toInstall': toInstall 'toInstall': toInstall
.map((entry) => {'key': entry.key, 'value': entry.value}) .map((entry) => {'key': entry.key, 'value': entry.value})
.toList(), .toList(),