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) {