Skip to content

Commit

Permalink
fix onstart/stop
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 9f2b562 commit 85b07ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 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) {
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) {
Countly.sharedInstance().onStop()
if (analyticsAllowed) Countly.sharedInstance().onStop()
}

override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle) {
Expand Down
23 changes: 0 additions & 23 deletions st.txt

This file was deleted.

0 comments on commit 85b07ec

Please sign in to comment.