Closed Bug 1953865 Opened 2 months ago Closed 1 month ago

[Downloads v2] [Refactor] Move icon evaluation logic to the FileItem (UIModel) instead of doing in compose

Categories

(Firefox for Android :: Downloads, task, P2)

All
Android
task

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: rsainani, Assigned: npoon)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid] [group4])

Attachments

(1 file)

Currently, FileItem.getIcon() is called in compose UI. As a result this is evaluated everytime composition occurs. This data is depenent on the FIleItem which is a data class. So this can be moved as a derived property of the data class so it's evaluated once per object creation.

Assignee: nobody → npoon
Status: NEW → ASSIGNED
Pushed by npoon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/670dc4adac66 Move Downloads icon evaluation logic from composable into FileItem r=android-reviewers,rsainani
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: