FileDownloadWorker and TwoWaySync Notification #13906
Labels
0. Needs triage
bug
feature: sync
feature: transfers
[WIP] Any uploading / downloading matters that aren't auto upload or sync specific
stable-3.30
Steps to reproduce
Expected behaviour
Actual behaviour
Notifications occasionally get stuck at 100% and do not reflect actual progress. Empty notifications may also appear, along with intermittent blinking.
Technical Explanation
The FileDownloadWorker can be triggered for each file or folder. Typically, it is initiated by individual files, meaning that a new worker starts for each file or folder. This can lead to issues with notifications, such as blinking, inaccurate progress and difficulty tracking current and total download counts.
FileDownloadWorker uses a static IndexedForest() to track each download’s status, enabling the display of sync, tick, and cancel icons in adapters. This complex data type is paired with Vector() to add a DownloadDataTransferProgressListener and notify LocalBroadcastManager. This approach is overly complex and can be unreliable.
Suggested Solution
Separate the FileDownloadWorker into two distinct workers: one for folders and one for individual files. Simplify the data structure by removing unnecessary complexity.
Android version
15
Device brand and model
Android Emulator
Stock or custom OS?
Stock
Nextcloud android app version
3.30.3
Nextcloud server version
29.0.4
The text was updated successfully, but these errors were encountered: