Closed Bug 1833693 Opened 2 years ago Closed 2 years ago

[Tabs tray to Compose] Refactor menu item creation out of `TabsTrayBanner`

Categories

(Firefox for Android :: Tabs, task, P3)

All
Android
task

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- verified

People

(Reporter: 007, Assigned: avirvara)

References

Details

Attachments

(1 file)

Currently, the MenuItem creation is a huge block inside of TabsTrayBanner, and it'd benefit from relocating this logic into a different file (perhaps as an extension function for TabsTrayState). This way the logic isn't trapped inside of TabsTrayBanner but the it could covered with unit tests as well.

generateSingleSelectBannerMenuItems currently has the @Composable tag and uses stringResource and colorResource, so those may need to be removed in favor of using simple IDs.

colorResource can also be dropped, as the default color is textPrimary, which is being passed in here.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: qe-verify+
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch

Verified as fixed on the latest nightly 119.0a1 from 05.09.2023 with Motorola Moto G9 Plus (Android 11).
Ensuring that the tabs tray menus are unchanged and behave accordingly.

Assignee: nobody → avirvara
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: