From 3d9d25df52cfa35106090a52c15c96984116e347 Mon Sep 17 00:00:00 2001 From: Stypox Date: Sat, 19 Mar 2022 21:55:00 +0100 Subject: [PATCH] Remove backoff criteria: it never kicked in It never kicked in since we are never returning a retry() Result, but always either success() or failure() (see createWork() function). Also, there is already a default (exponential backoff starting from 30 seconds), so no need to override it. --- .../newpipe/local/feed/notifications/NotificationWorker.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/local/feed/notifications/NotificationWorker.kt b/app/src/main/java/org/schabi/newpipe/local/feed/notifications/NotificationWorker.kt index 0a0cbd1f3..61e5c7d9e 100644 --- a/app/src/main/java/org/schabi/newpipe/local/feed/notifications/NotificationWorker.kt +++ b/app/src/main/java/org/schabi/newpipe/local/feed/notifications/NotificationWorker.kt @@ -132,7 +132,6 @@ class NotificationWorker( TimeUnit.MILLISECONDS ).setConstraints(constraints) .addTag(WORK_TAG) - .setBackoffCriteria(BackoffPolicy.LINEAR, 30, TimeUnit.MINUTES) .build() WorkManager.getInstance(context)