Skip to content

[Bug]: File list does not refresh automatically after granting storage permission #1392

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yxXXxy999 opened this issue Feb 25, 2025 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@yxXXxy999
Copy link

Describe the bug
After granting storage permission for the first time, the file manager does not automatically refresh the file list after file creation or deletion operations.

After the user navigates to another folder, everything returns to normal.

To Reproduce
Steps to reproduce the behavior:

  1. Open the app and grant storage permissions when prompted.
  2. Perform a file creation or deletion operation.
  3. The file list does not update.

Screen recording
https://github.com/user-attachments/assets/ae3fc1af-da21-4a4c-8abe-0b2d71707ab0

Expected behavior
The file list should automatically refresh and reflect any creation or deletion operations all the time.

Device Information:

  • Device: generic_x86_64 (Android Studio x86 emulator)
  • OS: Android 9
@zhanghai zhanghai self-assigned this Feb 25, 2025
@zhanghai zhanghai added the bug Something isn't working label Feb 25, 2025
@zhanghai zhanghai modified the milestones: v2.0.0, v1.8.0 Feb 25, 2025
@zhanghai
Copy link
Owner

This is probably due to the file observer not being re-registered after the permission is granted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants