From 11bbea294ac0d9aa85d1e81db6edfba3d4e9718a Mon Sep 17 00:00:00 2001 From: Ryan Lepinski Date: Fri, 15 Nov 2024 15:05:02 -0800 Subject: [PATCH] [MOBILE-4653] Fix engine paused state (#1570) --- .../main/java/com/urbanairship/automation/InAppAutomation.kt | 2 +- .../java/com/urbanairship/automation/engine/AutomationEngine.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/urbanairship-automation/src/main/java/com/urbanairship/automation/InAppAutomation.kt b/urbanairship-automation/src/main/java/com/urbanairship/automation/InAppAutomation.kt index 5ca075d93..abd1bf5c2 100644 --- a/urbanairship-automation/src/main/java/com/urbanairship/automation/InAppAutomation.kt +++ b/urbanairship-automation/src/main/java/com/urbanairship/automation/InAppAutomation.kt @@ -41,7 +41,7 @@ internal constructor( set(value) { synchronized(this) { dataStore.put(PAUSED_STORE_KEY, value) - engine.setEnginePaused(value) + engine.setExecutionPaused(value) } } diff --git a/urbanairship-automation/src/main/java/com/urbanairship/automation/engine/AutomationEngine.kt b/urbanairship-automation/src/main/java/com/urbanairship/automation/engine/AutomationEngine.kt index 47b2d8d6c..676ba99fc 100644 --- a/urbanairship-automation/src/main/java/com/urbanairship/automation/engine/AutomationEngine.kt +++ b/urbanairship-automation/src/main/java/com/urbanairship/automation/engine/AutomationEngine.kt @@ -101,6 +101,7 @@ internal class AutomationEngine( override fun setEnginePaused(paused: Boolean) { isPaused.update { paused } + triggerProcessor.setPaused(paused) } override fun setExecutionPaused(paused: Boolean) {