From 00dc4c2a477e5f009d0ae7596c3a8670426b0bf5 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Tue, 8 Jun 2021 15:18:47 -0400 Subject: [PATCH] need to check action type --- MVMCoreUI/Behaviors/PlayAudioBehavior.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/MVMCoreUI/Behaviors/PlayAudioBehavior.swift b/MVMCoreUI/Behaviors/PlayAudioBehavior.swift index 4ba7aa9f..32dc9727 100644 --- a/MVMCoreUI/Behaviors/PlayAudioBehavior.swift +++ b/MVMCoreUI/Behaviors/PlayAudioBehavior.swift @@ -52,6 +52,7 @@ public class PagePlayAudioBehavior: PageCustomActionHandlerBehavior { // Either play or pause public func handleAction(type actionType: String?, information: [AnyHashable: Any]?, additionalData: [AnyHashable: Any]?) -> Bool { + guard actionType == "playAudio" else { return false } // TODO: Impose Activity Indicator. // Update the model. play -> pause OR pause -> play