zhanghai / zhanghai/MaterialFiles

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

Open
#1,392 1 comment 0 reactions 1 assignee View on GitHub

@zhanghai is already working on this.

Since Feb 25, 2025.

bug
Dominant language
Kotlin
Stars
9k
Forks
736
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.