diff --git a/lib/main.dart b/lib/main.dart index 1cd8d55..38668c2 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -171,7 +171,7 @@ Future bgUpdateCheck(int taskId, Map? params) async { 'BG update task $taskId: Will continue in $remainingSeconds seconds (with $appId moved to the end of the line).'); var remainingToCheck = moveStrToEnd(toCheck.sublist(i), appId); AndroidAlarmManager.oneShot( - Duration(seconds: remainingSeconds), taskId, bgUpdateCheck, + Duration(seconds: remainingSeconds), taskId + 1, bgUpdateCheck, params: { 'toCheck': remainingToCheck, 'toInstall': toInstall, @@ -211,7 +211,7 @@ Future bgUpdateCheck(int taskId, Map? params) async { 'BG update task $taskId: Will continue in $remainingSeconds seconds (with $appId moved to the end of the line).'); var remainingToInstall = moveStrToEnd(toInstall.sublist(i), appId); AndroidAlarmManager.oneShot( - Duration(seconds: remainingSeconds), taskId, bgUpdateCheck, + Duration(seconds: remainingSeconds), taskId + 1, bgUpdateCheck, params: { 'toCheck': toCheck, 'toInstall': remainingToInstall,