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:
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…
Reference in New Issue
Block a user