Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
Signed-off-by: androidacy-user <[email protected]>
  • Loading branch information
androidacy-user committed Sep 21, 2023
1 parent 85b07ec commit 2299a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/kotlin/com/fox2code/mmm/MainApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 2299a75

Please sign in to comment.