You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Recent files doesn't display recent files
Add or modify files, then open "Recent files" in the drawer. The files that just modified doesn't display
To Reproduce
Steps to reproduce the behavior:
add or modify any files, e.g., "123.txt"
Open "Recent files"
See error
Expected behavior
The files that just modified should display
Screenshots
Smartphone (please complete the following information):
Device: [e.g. Google Pixel 2]
OS: [Android 8]
Rooted: [No]
Version: [3.8.4]
The text was updated successfully, but these errors were encountered:
RCA -
There was a check in `LoadFilesListTask.listRecentFiles()` that only list the file if it is not directory, which is not a case if file is not created in `storage/emulated0/` directory. The recently changed file would always come wrapped in some folder if created in a directory other than `storage/emulated0/`. Which was causing this issue.
Resolution -
In the solution provided it is assumed that we have to only show the files that were modified, hence, only modified/created files are listed and not the folders (as the title suggests ‘Recent Files’).
Here, if the file is wrapped in a directory, the directory is recursively explored to check the files it contains.
As we loop around recursively we go on adding the files that we find in a final list that is to be returned.
In this code, every file that comes from cursor will always be wrapped in some folder and it will be explored recursively and listed.
Describe the bug
Recent files doesn't display recent files
Add or modify files, then open "Recent files" in the drawer. The files that just modified doesn't display
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The files that just modified should display
Screenshots
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: