Skip to content

SyncBroadcastReceiver in FileDisplayActivity Triggers Multiple Times Causing Repeated Directory Listing #14855

@alperozturk96

Description

@alperozturk96

Steps to reproduce

  1. Upload files in a directory.
  2. Observe FileDisplayActivity.SyncBroadcastReceiver being triggered multiple times during the process.
  3. As a result, listDirectory() is called repeatedly.
  4. These repeated calls lead to multiple invocations of OCFileListAdapter.swapDirectory().

Suggestion

The broadcast receiver should be triggered only when necessary, and directory listing should occur a single time per meaningful change.

Metadata

Metadata

Labels

enhancementperformance 🚀Performance improvement opportunities (non-crash related)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions