mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-15 11:28:10 +02:00
Tweaks
This commit is contained in:
@@ -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(),
|
||||||
|
Reference in New Issue
Block a user