2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

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

This commit is contained in:
iorgamgabriel 2023-01-25 15:03:48 +02:00 committed by mergify[bot]
parent 1619ebd98e
commit 5540d7a63f

View File

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