From 0deab8296fa72e7f9f37d2a2b4709ce8d32a75c0 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Wed, 23 Aug 2023 18:28:16 -0400 Subject: [PATCH] bug --- lib/main.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,