From 2299a7510efe89278e0aef82b62548a77eb1ef41 Mon Sep 17 00:00:00 2001 From: androidacy-user Date: Thu, 21 Sep 2023 16:58:52 +0200 Subject: [PATCH] oops Signed-off-by: androidacy-user --- app/src/main/kotlin/com/fox2code/mmm/MainApplication.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/fox2code/mmm/MainApplication.kt b/app/src/main/kotlin/com/fox2code/mmm/MainApplication.kt index 49fcce61..ab783657 100644 --- a/app/src/main/kotlin/com/fox2code/mmm/MainApplication.kt +++ b/app/src/main/kotlin/com/fox2code/mmm/MainApplication.kt @@ -753,7 +753,7 @@ class MainApplication : Application(), Configuration.Provider, ActivityLifecycle } override fun onActivityStarted(activity: Activity) { - if (analyticsAllowed) Countly.sharedInstance().onStart(activity) + if (analyticsAllowed()) Countly.sharedInstance().onStart(activity) } override fun onActivityResumed(activity: Activity) { @@ -765,7 +765,7 @@ class MainApplication : Application(), Configuration.Provider, ActivityLifecycle } override fun onActivityStopped(activity: Activity) { - if (analyticsAllowed) Countly.sharedInstance().onStop() + if (analyticsAllowed()) Countly.sharedInstance().onStop() } override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle) {