Open Bug 2090973 Opened 5 days ago Updated 5 days ago

[customizable menu] Persist the order and visibility of the Tools menu items and use them in the browser menu

Categories

(Firefox for Android :: Menu, task)

All
Android
task

Tracking

()

People

(Reporter: petru, Unassigned)

References

(Blocks 1 open bug)

Details

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

Save which Tools menu items are shown, in which order, which are inside "More" and which are hidden, and build the Tools section of the browser menu from it.

  • A new CustomizedSectionInfo (section id, items with their sub item ids, hidden items), separate from CustomizedMenuInfo since a section's items are customized in their own screen.
  • Stored in the existing menu customization DataStore file as new customized_sections; no schema version bump, a missing entry means the section items are not customized.
  • MenuCustomizationRepository exposes customizedSectionsInfo and saves it without overwriting the customized sections order, and the other way around.
  • Items added to the app later appear at their default place, the same way new menu sections are handled. Unknown ids are dropped and at least one item stays visible.
  • "Reset to default" and the customized state of the menu also account for the Tools items.

Applied in the browser menu only when the "Enable tools menu customization" secret setting is on.

You need to log in before you can comment on or make changes to this bug.