commit | b26b48f66cdee8196475b361660ce49f99e1f17d | [log] [tgz] |
---|---|---|
author | Amos Bianchi <amosbianchi@google.com> | Thu Sep 21 13:06:56 2023 -0700 |
committer | Amos Bianchi <amosbianchi@google.com> | Thu Sep 21 13:06:56 2023 -0700 |
tree | 2445d2305de16b4109a7d384f3bac0ea484fdb35 | |
parent | 747363c9ce566dae6be85dcd5bb60b032b45198c [diff] |
DLC: Set proper backoff duration. Currently, a backoff duration of 60 hours is used (should have been 60 minutes). Bug: 301482254 Test: no warning Change-Id: I5faff764f2bacf71afdcd47a7c3dea18020a4d70
diff --git a/DeviceLockController/src/com/android/devicelockcontroller/schedule/DeviceLockControllerSchedulerImpl.java b/DeviceLockController/src/com/android/devicelockcontroller/schedule/DeviceLockControllerSchedulerImpl.java index 8788d8f..04e7a6e 100644 --- a/DeviceLockController/src/com/android/devicelockcontroller/schedule/DeviceLockControllerSchedulerImpl.java +++ b/DeviceLockController/src/com/android/devicelockcontroller/schedule/DeviceLockControllerSchedulerImpl.java
@@ -338,7 +338,7 @@ NetworkType.CONNECTED).build()) .setInitialDelay(delay) .setBackoffCriteria(BackoffPolicy.LINEAR, - Duration.ofHours(CHECK_IN_INTERVAL_MINUTE)); + Duration.ofMinutes(CHECK_IN_INTERVAL_MINUTE)); if (isExpedited) builder.setExpedited(OutOfQuotaPolicy.RUN_AS_NON_EXPEDITED_WORK_REQUEST); WorkManager.getInstance(mContext).enqueueUniqueWork(DEVICE_CHECK_IN_WORK_NAME, ExistingWorkPolicy.REPLACE, builder.build());