-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[BUG] Av. offline operation does not work correctly when run from a parent folder #4403
base: fix/av_offline_files_removed_locally_with_local_only_option
Are you sure you want to change the base?
Conversation
402f620
to
35ce6ba
Compare
Following this same use case:
The problem is that when doing a But in addition to that, another condition that we have for it to refresh the files in that folder will not be fulfit either. When we compared on Folder2 if the Therefore, with the new logic there would be nothing to refresh and it will not synchronize the files contained in that subfolder. Another option that was considered to fix this was to control the To not further change the logic of the |
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.
Some changes requested here @Aitorbp
owncloudApp/src/main/java/com/owncloud/android/syncadapter/FileSyncAdapter.java
Outdated
Show resolved
Hide resolved
@@ -51,6 +53,7 @@ class SynchronizeFolderUseCase( | |||
accountName = accountName, | |||
spaceId = ocFile.spaceId, | |||
syncMode = params.syncMode, | |||
isActionSetFolderAvailableOffline = params.isActionSetFolderAvailableOffline, |
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.
Is this parameter needed in both calls to refresh
? I mean, in line 44 and here, maybe we can save the one from line 44?
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.
It needs to be on both sides. When we encounter a subfolder scenario, if we do not continue setting the isActionSetFolderAvailableOffline
parameter it will default to false
, when in reality we are setting all content available offline. Then the content of these subfolders will not be downloaded or synchronized.
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.
Yes, but this should only apply to files, right? Passing it as parameter to folders is just needed to transmit it until we arrive to a file, and we're doing it in the recursive call. In line 44 we're passing it to a refresh, where we don't need to check the new condition. Am I missing something?
owncloudApp/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java
Outdated
Show resolved
Hide resolved
c753572
to
3f9a8e8
Compare
c3f0242
to
9d25437
Compare
89a67e4
to
399b174
Compare
399b174
to
a4b67f9
Compare
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.
Check my reply to a comment of the previous CR @Aitorbp
Related Issues
App: #4402
ReleaseNotesViewModel.kt
creating a newReleaseNote()
with String resources (No required)QA