From e476e4cad568c587ee9d8766bb71073a32e49335 Mon Sep 17 00:00:00 2001 From: Alyssa Yu Date: Tue, 20 Sep 2022 11:36:52 -0700 Subject: [PATCH] fix: fix optOut (#74) --- core/src/main/java/com/amplitude/core/Amplitude.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/amplitude/core/Amplitude.kt b/core/src/main/java/com/amplitude/core/Amplitude.kt index 6d54451b..d8c0abd6 100644 --- a/core/src/main/java/com/amplitude/core/Amplitude.kt +++ b/core/src/main/java/com/amplitude/core/Amplitude.kt @@ -316,6 +316,7 @@ open class Amplitude internal constructor( private fun process(event: BaseEvent) { if (configuration.optOut) { logger.info("Skip event for opt out config.") + return } amplitudeScope.launch(amplitudeDispatcher) { isBuilt.await()