-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Use Work Manager For File Download #12308
Use Work Manager For File Download #12308
Conversation
alperozturk96
commented
Dec 20, 2023
•
edited
Loading
edited
- Tests written, or not not needed
d984c32
to
df0be0a
Compare
/rebase |
2 similar comments
/rebase |
/rebase |
584ed8b
to
28cffe1
Compare
a450370
to
041e836
Compare
Only one test is failing - "download_progress_is_updated[android(AVD) - 8.1.0] FAILED - java.lang.AssertionError: expected:<6> but was:<2>" |
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.
Synchronizing Folders only downloads one file of the folder not all as expected
app/src/main/java/com/nextcloud/client/notifications/download/DownloadNotificationManager.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/nextcloud/client/notifications/download/DownloadNotificationManager.kt
Outdated
Show resolved
Hide resolved
@JonasMayerDev Fix Sync down_i.mp4 |
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.
New implemented function "isDownloading" does not the same thing as old one. Maybe reimplement it and make sure it does the same thing. Be careful when changing the functionality of a function to make sure everywhere it is used it is still fitting...
app/src/main/java/com/nextcloud/client/jobs/BackgroundJobManagerImpl.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/files/FileMenuFilter.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java
Outdated
Show resolved
Hide resolved
app/src/main/java/com/owncloud/android/ui/adapter/OCFileListDelegate.kt
Outdated
Show resolved
Hide resolved
Maybe it is a better idea to not change the download functionality and switch to chained worker in another pull request to make sure we don't introduce issues with new untested logic...? @alperozturk96 |
getRequestDownloads() was causing the problem. I fixed it but for future implementation chained worker can be used as well. |
New function added into BackgroundJobManagerImpl that checks status of the current file. You can test it. |
@JonasMayerDev Sync icon same as master, fyi. Master master_c.mp4PR pr_c.mp4 |
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.
Screen_recording_20231228_170425.webm
- Download of folder happens in parallel, which messes with the progress notification.
- Blue sync icon for a folder is only visible for first download
- Sync of a folder can not be stopped
dcba572
to
99fe9f3
Compare
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: Jonas Mayer <jonas.a.mayer@gmx.net>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
edab3e3
to
95e9be6
Compare
Signed-off-by: alperozturk <alper_ozturk@proton.me>
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/12308.apk |