fix usage of mTransferWasRequested

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-11-11 12:04:02 +01:00
parent e48cb5aee4
commit db547427f4
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -300,6 +300,8 @@ public class SynchronizeFileOperation extends SyncOperation {
final var operation = new DownloadFileOperation(mUser, file, mContext);
var result = operation.execute(getClient());
mTransferWasRequested = true;
String filename = file.getFileName();
if (filename != null) {
if (result.isSuccess()) {
@ -312,7 +314,7 @@ public class SynchronizeFileOperation extends SyncOperation {
Log_OC.d(TAG, "Exception caught at requestForDownload" + e);
}
mTransferWasRequested = true;
}
public boolean transferWasRequested() {