Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Assign visibilityLifeCycleCallback Closes #2499
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily Kager authored and ekager committed Apr 23, 2018
1 parent 4c9cfc9 commit 96c2b08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/org/mozilla/focus/FocusApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class FocusApplication : LocaleAwareApplication() {
TelemetryWrapper.init(this)
AdjustHelper.setupAdjustIfNeeded(this)

registerActivityLifecycleCallbacks(VisibilityLifeCycleCallback(this))
visibilityLifeCycleCallback = VisibilityLifeCycleCallback(this)
registerActivityLifecycleCallbacks(visibilityLifeCycleCallback)

val sessions = SessionManager.getInstance().sessions
sessions.observeForever(NotificationSessionObserver(this))
Expand Down

0 comments on commit 96c2b08

Please sign in to comment.