-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add Sync Worker #14166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add Sync Worker #14166
Conversation
8da1e10
to
d017482
Compare
57990c8
to
0c5db2c
Compare
} | ||
} else { | ||
mFilesForDirectDownload.forEach(file -> fileDownloadHelper.downloadFile(user, file)); | ||
fileDownloadHelper.syncFolder(mLocalFolder); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since SyncWorker is responsible for preparing the files, there is no need to pass an array of files to the worker. Additionally, in scenarios where a user attempts to sync a large number of files (e.g., 1,000 files), the app could freeze or crash due to limitations associated with passing a large amount of data between classes via inputData.
4da8950
to
41d9f2e
Compare
5f8baf6
to
5422ca6
Compare
5422ca6
to
d5e299a
Compare
d41acbd
to
35752db
Compare
This comment was marked as resolved.
This comment was marked as resolved.
35752db
to
f243143
Compare
This comment was marked as resolved.
This comment was marked as resolved.
4949a04
to
3293e26
Compare
971956c
to
bff91ce
Compare
app/src/main/java/com/nextcloud/client/jobs/sync/SyncWorkerNotificationManager.kt
Outdated
Show resolved
Hide resolved
b81e9d4
to
349fc6f
Compare
@jancborchardt We can merge it after get approval from @tobiasKaminsky :) How to test?
The sync icon should be displayed for the folder itself and for its sub-files. Subfolders and the files within those subfolders should not be downloaded (because). When the user reopens the app, the sync icons for the already downloaded folders and subfiles should remain visible. |
559ad4a
to
72e45a9
Compare
72e45a9
to
0d1a0cf
Compare
# Conflicts: # app/src/main/java/com/nextcloud/utils/extensions/FileDataStorageManagerExtensions.kt # app/src/main/java/com/owncloud/android/ui/adapter/SyncedFolderAdapter.kt # app/src/main/res/layout/synced_folders_item_header.xml # Conflicts: # app/src/main/java/com/nextcloud/client/jobs/download/FileDownloadHelper.kt
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
69e5b35
to
7c2ae9b
Compare
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
test-Unit test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/14166-Unit-test-15-19 |
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/14166.apk |
Issue #13906
Changes:
• Fixed the issue of scheduling too many FileDownloadWorker instances for folder sync.
• Improved file download status observation, including states like syncing, downloading, and downloaded.
• Better constraints for worker
• Enhanced folder sync progress observation in notifications.
• Optimized performance using CoroutineWorker.
Demo New Notifications
Screen.Recording.2025-03-20.at.11.33.31.mp4