mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 05:35:39 +03:00
Fix. Favorite setting is not remembered when modifying the local file
This commit is contained in:
parent
37c96a4fb0
commit
64c6e90724
2 changed files with 12 additions and 5 deletions
|
@ -493,6 +493,7 @@ public class FileUploader extends Service
|
|||
|
||||
newUpload = new UploadFileOperation(
|
||||
account,
|
||||
files[i],
|
||||
ocUpload,
|
||||
chunked,
|
||||
forceOverwrite,
|
||||
|
@ -546,6 +547,7 @@ public class FileUploader extends Service
|
|||
|
||||
UploadFileOperation newUpload = new UploadFileOperation(
|
||||
account,
|
||||
null,
|
||||
upload,
|
||||
chunked,
|
||||
upload.isForceOverwrite(), // TODO should be read from DB?
|
||||
|
|
|
@ -138,6 +138,7 @@ public class UploadFileOperation extends SyncOperation {
|
|||
protected RequestEntity mEntity = null;
|
||||
|
||||
public UploadFileOperation(Account account,
|
||||
OCFile file,
|
||||
OCUpload upload,
|
||||
boolean chunked,
|
||||
boolean forceOverwrite,
|
||||
|
@ -156,11 +157,15 @@ public class UploadFileOperation extends SyncOperation {
|
|||
}
|
||||
|
||||
mAccount = account;
|
||||
mFile = obtainNewOCFileToUpload(
|
||||
upload.getRemotePath(),
|
||||
upload.getLocalPath(),
|
||||
upload.getMimeType()
|
||||
);
|
||||
if (file == null) {
|
||||
mFile = obtainNewOCFileToUpload(
|
||||
upload.getRemotePath(),
|
||||
upload.getLocalPath(),
|
||||
upload.getMimeType()
|
||||
);
|
||||
} else {
|
||||
mFile = file;
|
||||
}
|
||||
mRemotePath = upload.getRemotePath();
|
||||
mChunked = chunked;
|
||||
mForceOverwrite = forceOverwrite;
|
||||
|
|
Loading…
Reference in a new issue