Nav Bar CFR does not update the `lastCfrShownTimeInMillis` variable in `Settings.kt`
Categories
(Fenix :: Toolbar, defect, P2)
Tracking
(firefox131 fixed)
Tracking | Status | |
---|---|---|
firefox131 | --- | fixed |
People
(Reporter: npoon, Assigned: skhan, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [avocado sprint])
Attachments
(1 file)
All CFRs should update the lastCfrShownTimeInMillis
variable in Settings.kt
after being dismissed. As a part of this ticket, add the following line to the onDismiss
lambda for the nav bar, which is here:
context.settings().lastCfrShownTimeInMillis = System.currentTimeMillis()
. This is similar to what is done here
Reporter | ||
Updated•4 months ago
|
Reporter | ||
Updated•4 months ago
|
Reporter | ||
Updated•3 months ago
|
Reporter | ||
Updated•3 months ago
|
Comment 1•3 months ago
|
||
Sarah, will our nav bar CFR still show when we want it to if we start setting lastCfrShownTimeInMillis = System.currentTimeMillis()
? Do we still need to set shouldShowNavigationBarCFR = false
?
Looks like there are many callers setting context.settings().lastCfrShownTimeInMillis = System.currentTimeMillis()
. Perhaps more of this CFR logic can be consolidated and encapsulated inside Settings object functions so we only have to fix the CFRs in one place?
Reporter | ||
Comment 2•3 months ago
•
|
||
Hey Chris, thanks for the comment. The nav bar CFR will still show when it should without setting lastCfrShownTimeInMillis = System.currentTimeMillis()
. However, there are other CFRs (i.e. Add Private Tab to Home, Inactive Tabs, Tab Auto Close Banner, PWA) that will only appear if a CFR has not been shown in at least 3 days. My guess is that the navigation bar is essential enough in which we don't delay showing its CFR but other CFRs can be delayed a bit until it is shown (to avoid overwhelming the user).
I agree here with Nick's above comment. Navigation bar CFR is the first CFR that we show on home screen today so it does not require to set lastCfrShownTimeInMillis.
Comment 6•2 months ago
|
||
bugherder |
Description
•