Open Bug 1867689 Opened 2 years ago Updated 1 year ago

[lib-state] Investigate ThemeManager and refactor if appropriate

Categories

(Firefox for Android :: Homepage, enhancement, P3)

All
Android
enhancement

Tracking

()

People

(Reporter: matt-tighe, Unassigned)

References

(Blocks 2 open bugs)

Details

The ThemeManager is a utility class that controls state about the application theme based on whether private browsing mode is enabled.

Looking through it briefly, it seems like there is an opportunity to create an AbstractBinding which manages the theme in reaction to AppState updates. This functionality could be combined with the new PrivateBrowsingBinding and put into a separate class. The utility functions could continue to exist as a namespaced object, or it might be worth restructuring them as extension functions.

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