Skip to content

Commit

Permalink
make variable name clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
mikescamell committed Feb 7, 2025
1 parent 356e5d2 commit 4274b24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ class LaunchBridgeActivity : DuckDuckGoActivity() {
splashScreen.setOnExitAnimationListener { splashScreenView ->
val splashScreenAnimationEndTime =
Instant.ofEpochMilli(splashScreenView.iconAnimationStartMillis + splashScreenView.iconAnimationDurationMillis)
val delay = Instant.now().until(
val remainingAnimationTime = Instant.now().until(
splashScreenAnimationEndTime,
ChronoUnit.MILLIS,
)

lifecycleScope.launch {
viewModel.sendWelcomeScreenPixel()
delay(delay)
delay(remainingAnimationTime)
viewModel.determineViewToShow()
}
}
Expand Down

0 comments on commit 4274b24

Please sign in to comment.