[Downloads v2] [Refactor] Stop storing the ids of the items pending deletion in DownloadFragment
Categories
(Firefox for Android :: Downloads, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox140 | --- | fixed |
People
(Reporter: titouan, Assigned: titouan)
References
Details
(Whiteboard: [fxdroid][group4])
Attachments
(3 files, 1 obsolete file)
Currently, the DownloadFragment retains the items that are pending deletion, and pass them into the UndoPendingDeletionSet action that is dispatched on the DownloadStore.
We should not store this information there, and the DownloadFragment should only dispatch an UndoPendingDeletion action that would then undo the last Deletion that was triggered, if the delay has not expired yet.
Updated•5 months ago
|
Assignee | ||
Comment 1•5 months ago
|
||
Assignee | ||
Comment 2•5 months ago
|
||
Depends on D243419
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Assignee | ||
Updated•4 months ago
|
Comment 4•4 months ago
|
||
bugherder |
Comment 5•4 months ago
•
|
||
Verified on the latest Firefox for Android 140.0a1 from 5/7 on 2 different devices: Google Pixel 6 (Android 16), and OnePlus 5 (Android 10).
After deleting some downloaded files, and tapping on "Undo", the restored files are only available for a few seconds, then they are deleted completely - please see the attached short video.
Rahul, please take a look.
Thank you!
- when deleting a single downloaded file from its three-dot menu + "undo" the file is restored without issues. The problem is when deleting and restoring after long-tap on a downloaded file + "undo".
Comment 6•4 months ago
|
||
Updated•4 months ago
|
Updated•4 months ago
|
Assignee | ||
Comment 7•4 months ago
|
||
Thanks for this testing Mira, I'll investigate!
Updated•4 months ago
|
Description
•