[fenix] Bug 1810314 - Update cookie banner snackbar duration.

pull/600/head
iorgamgabriel 2 years ago committed by mergify[bot]
parent 1619ebd98e
commit 5540d7a63f

@ -53,7 +53,7 @@ class CookieBannerReEngagementDialog : DialogFragment() {
requireContext().getRootView()?.let {
FenixSnackbar.make(
view = it,
duration = FenixSnackbar.LENGTH_LONG,
duration = LENGTH_SNACKBAR_DURATION,
isDisplayedWithBrowserToolbar = true,
)
.setText(getString(R.string.reduce_cookie_banner_dialog_snackbar_text))
@ -85,4 +85,8 @@ class CookieBannerReEngagementDialog : DialogFragment() {
private fun reload() {
return requireContext().components.useCases.sessionUseCases.reload()
}
companion object {
private const val LENGTH_SNACKBAR_DURATION = 4000 /* 4 seconds in ms */
}
}

Loading…
Cancel
Save