From 2b187014b43750eb834ce507dd035065ad8b2f3f Mon Sep 17 00:00:00 2001 From: Ryan VanderMeulen Date: Tue, 13 Feb 2024 20:47:55 -0500 Subject: [PATCH] Bug 1880408 - Remove uses of the deprecated ExistingPeriodicWorkPolicy.REPLACE policy --- .../org/mozilla/fenix/messaging/MessageNotificationWorker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/messaging/MessageNotificationWorker.kt b/app/src/main/java/org/mozilla/fenix/messaging/MessageNotificationWorker.kt index 173552066a..ba0f8560b0 100644 --- a/app/src/main/java/org/mozilla/fenix/messaging/MessageNotificationWorker.kt +++ b/app/src/main/java/org/mozilla/fenix/messaging/MessageNotificationWorker.kt @@ -147,7 +147,7 @@ class MessageNotificationWorker( // We want to keep any existing scheduled work, unless // when we're under test. if (messaging.isUnderTest()) { - ExistingPeriodicWorkPolicy.REPLACE + ExistingPeriodicWorkPolicy.CANCEL_AND_REENQUEUE } else { ExistingPeriodicWorkPolicy.KEEP },