Trash displays folder sizes incorrectly
Describe the bug The confirmation dialog shows size as 0 B, inconsistent with the 3.45 kB listed in the Trash Bin.
To Reproduce Steps to reproduce the behavior:
- Go to 'Hamburger' menu
- Click on 'Trash Bin'
- Select an item in 'Trash Bin'
- Attempt to restore the item
- Observe the confirmation dialog details
Expected behavior File sizes in confirmation should match the actual sizes listed previously.
Screen Recording
https://github.com/user-attachments/assets/f2e69f44-994d-4c84-92e8-ce54a6a7ec43
Smartphone (please complete the following information):
- Device: [Google Pixel 5]
- OS: [Android 14]
- Rooted: [No]
- Version: [3.10]
Additional context The issue also occurs with incorrect file size representation in the Delete confirmation dialog.
Empty files and folder should be larger than 0B in the trash, because deleted metadata also counts as part of the "trash content" (as opposed to when the file/folder is not in the trash, where metadata doesn't count towards file/folder size).
Closing for now as I don't think we would change how this works, but we can discuss further if you feel this is unintuitive or if the size accounting for metadata is wrong.
@EmmanuelMess it shows very different or under-estimated folder sizes regardless of it's original size; which is unintuitive & should be fixed, IMO.
for example, one directory on my phone originally ~60 MB showed up as 8.45 kB in trash & directories originally with less data (or empty) showed up as 3.45 kB.
what do you think?
what do you think?
Its a bug. Size should be cached as part of the trash metadata when deleting stuff.