Skip to content

Fix stale refresh in drawer category views#4588

Closed
geoffreysisco wants to merge 1 commit into
TeamAmaze:release/4.0from
geoffreysisco:fix/drawer-views-not-refreshing
Closed

Fix stale refresh in drawer category views#4588
geoffreysisco wants to merge 1 commit into
TeamAmaze:release/4.0from
geoffreysisco:fix/drawer-views-not-refreshing

Conversation

@geoffreysisco

Copy link
Copy Markdown
Contributor

Description

Fix stale list behavior in drawer/category views (Documents, Images, Videos, etc.).

Create, rename, and delete operations were not reflected in these views
until a manual refresh or app restart.

Force reload when navigating to drawer category views and when updating
OpenMode.CUSTOM or OpenMode.TRASH_BIN, so the visible list reflects
current filesystem state.

Issue tracker

Fixes #4580

Before

Screen_recording_20260309_094920.mp4

After

after.mp4

Automatic tests

  • Added test cases

Manual tests

  • Done

Smartphone:

  • Device: Pixel 9 Pro (emulator)
  • OS: Android 16 (API 36)
  • Rooted: No
  • Version: 3.11.2

Verified behavior in:

  • Recent Files
  • Images
  • Videos
  • Audio
  • Documents
  • APKs
  • Trash Bin

Scenarios tested:

  • Create file → appears in drawer view
  • Rename file → updated name reflected
  • Permanently delete file → removed from drawer view

Build tasks success

Successfully running following tasks locally:

  • ./gradlew assembleDebug
  • ./gradlew spotlessCheck

Force reload when navigating to drawer category views to ensure list updates after file operations.
@geoffreysisco

Copy link
Copy Markdown
Contributor Author

Closing this PR in favor of a replacement that covers both permanent delete and regular delete behaviors discovered during broader testing.

Additional testing revealed that drawer category views also require filtering of Amaze’s trash directory entries to prevent stale items and duplicate Trash Bin entries.

A follow-up PR has been opened with the combined changes for clarity and complete coverage of delete behavior.

@geoffreysisco geoffreysisco deleted the fix/drawer-views-not-refreshing branch March 20, 2026 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documents drawer view shows stale entries after file operations until swipe-to-refresh or restart

1 participant