forked from mozilla-mobile/android-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For mozilla-mobile#9932 - BrowserMenuAdapter is now a StickyItems Ada…
…pter The most important new responsibilities are to update the view of the sticky item. BrowserMenu's background is only set on the parent's layout so the Adapter will have to set that same background to the sticky item's view such that other items scrolling underneath it will be totally obscured. Because the menu's background can be set in multiple ways (by setting a value for mozac_browser_menu_background / by passing a MenuStyle or like in Fenix having a default theme for all "above" views) BrowserMenu will offer a new backgroundColor property that as the single source of truth for this which can then be used by the Adapter.
- Loading branch information
Showing
4 changed files
with
165 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters