Open EmmanuelMess opened 3 years ago
Dupe to #1063 ?
No, that happens on the delete, this happens on the dialog.
Ok, maybe update the description / title to avoid confusion?
Initial suggestion would be to disable file listing in dialog if it crosses certain threshold, say 50 files. Total size calculation may remain, subject to testing.
Initial suggestion would be to disable file listing in dialog if it crosses certain threshold, say 50 files. Total size calculation may remain, subject to testing.
Maybe something like ..."and X more files", and directory listing should cancel when the user presses "accept".
And x more files
makes sense, but listing should cancel? I mean, will it buffer? Not a good idea, I think it'll be unnecessary complication.
It isn't practical to list hundreds of files in a dialog, let alone thousands.
And x more files
makes sense, but listing should cancel? I mean, will it buffer? Not a good idea, I think it'll be unnecessary complication.
The listing should cancel, otherwise it will have to finish before the delete actually takes place, and the listing can take very long on some directories.
I'm saying we will not list all the files. Will ve something like
Directories
1. A
2. B
3. C
.
.
25. Xyz
And 25 more...
Total - xx GB
Here the listing has finished. So listing 25/ whatever number wouldn't take that long.
I'm saying we will not list all the files. Will ve something like
Directories 1. A 2. B 3. C . . 25. Xyz And 25 more... Total - xx GB
Here the listing has finished. So listing 25/ whatever number wouldn't take that long.
So listing 25/ whatever number wouldn't take that long.
No, but the "total" would need the entire list, and would take long, as it does now.
No, but the "total" would need the entire list, and would take long, as it does now.
Yes. I missed it probably. We can keep something like
Total: xx GB and processing
and keep it updating. LiveData should help in this case.
No, but the "total" would need the entire list, and would take long, as it does now.
Yes. I missed it probably. We can keep something like
Total: xx GB and processing
and keep it updating. LiveData should help in this case.
But when the user clicks "delete" the listing has to be cancelled, otherwise, as it is implemented, I think the deletion doesn't start.
Press "delete" witg 16000 files selected, the list is unscrollable, and the activity crashes: