Steps to reproduce
- Upload files in a directory.
- Observe FileDisplayActivity.SyncBroadcastReceiver being triggered multiple times during the process.
- As a result, listDirectory() is called repeatedly.
- 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.