Skip to content

Commit

Permalink
Always initialize analytics when drop in is created
Browse files Browse the repository at this point in the history
COAND-845
  • Loading branch information
OscarSpruit committed May 22, 2024
1 parent 9b71e3a commit 6c4799f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,7 @@ internal class DropInActivity :
return
}

if (noDialogPresent()) {
dropInViewModel.onCreated()
}
dropInViewModel.onCreated(noDialogPresent())

handleIntent(intent)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,11 @@ internal class DropInViewModel(
)
}

fun onCreated() {
navigateToInitialDestination()
fun onCreated(noDialogPresent: Boolean) {
if (noDialogPresent) {
navigateToInitialDestination()
}

initializeAnalytics()
}

Expand Down

0 comments on commit 6c4799f

Please sign in to comment.