From 7c4d418f6fbbc383075aea3cb2279a41758c744d Mon Sep 17 00:00:00 2001 From: Xinyi Ye Date: Mon, 22 Jan 2024 15:20:33 -0800 Subject: [PATCH] Update android/src/main/java/com/amplitude/android/Amplitude.kt Co-authored-by: Justin Fiedler --- android/src/main/java/com/amplitude/android/Amplitude.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/amplitude/android/Amplitude.kt b/android/src/main/java/com/amplitude/android/Amplitude.kt index c009ec4c..749d38ba 100644 --- a/android/src/main/java/com/amplitude/android/Amplitude.kt +++ b/android/src/main/java/com/amplitude/android/Amplitude.kt @@ -57,7 +57,7 @@ open class Amplitude( } this.createIdentityContainer(identityConfiguration) - if (this.configuration.offline != null) { + if (this.configuration.offline != AndroidNetworkConnectivityCheckerPlugin.Disabled) { add(AndroidNetworkConnectivityCheckerPlugin()) } androidContextPlugin = AndroidContextPlugin()