Open Bug 2091560 Opened 4 days ago Updated 1 day ago

Tab groups toolbar menu highlight does not update when the tab groups menu setting is toggled

Categories

(Firefox for Android :: Tabs, task)

All
Android
task

Tracking

()

ASSIGNED

People

(Reporter: jdelorenzo, Assigned: jdelorenzo)

References

Details

(Whiteboard: [fxdroid][android-core][bugzilla])

Attachments

(1 external file)

FenixTabGroupsFeatureDiscoveryConfiguration.toolbarMenuButtonHighlight reads showMenuItem (showTabGroupsInMenu) inside a map over the repository's uiState, so it is only re-evaluated when the repository emits.

  • Turning the setting off while the menu button is highlighted keeps the highlight for the rest of the session, since every repository write is gated on showMenuItem.
  • Turning it on shows no highlight until the next repository write or restart.

Fix: observe the setting as a flow and combine it, as Summarize does with isFeatureEnabled.

Split from bug 2063470.

Whiteboard: [fxdroid][android-core][bugzilla]
Assignee: nobody → jdelorenzo
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: