mirror of
https://github.com/nextcloud/android.git
synced 2024-11-21 20:55:31 +03:00
add missing constructor usages
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
dbcfcca259
commit
d8e951ecaa
3 changed files with 14 additions and 8 deletions
|
@ -114,7 +114,8 @@ public class SynchronizeFileOperation extends SyncOperation {
|
|||
User user,
|
||||
boolean syncFileContents,
|
||||
Context context,
|
||||
FileDataStorageManager storageManager) {
|
||||
FileDataStorageManager storageManager,
|
||||
boolean syncForInternalTwoWaySyncWorker) {
|
||||
super(storageManager);
|
||||
|
||||
mLocalFile = localFile;
|
||||
|
@ -134,6 +135,7 @@ public class SynchronizeFileOperation extends SyncOperation {
|
|||
mSyncFileContents = syncFileContents;
|
||||
mContext = context;
|
||||
mAllowUploads = true;
|
||||
this.syncForInternalTwoWaySyncWorker = syncForInternalTwoWaySyncWorker;
|
||||
}
|
||||
|
||||
|
||||
|
@ -163,9 +165,9 @@ public class SynchronizeFileOperation extends SyncOperation {
|
|||
boolean syncFileContents,
|
||||
boolean allowUploads,
|
||||
Context context,
|
||||
FileDataStorageManager storageManager) {
|
||||
|
||||
this(localFile, serverFile, user, syncFileContents, context, storageManager);
|
||||
FileDataStorageManager storageManager,
|
||||
boolean syncForInternalTwoWaySyncWorker) {
|
||||
this(localFile, serverFile, user, syncFileContents, context, storageManager, syncForInternalTwoWaySyncWorker);
|
||||
mAllowUploads = allowUploads;
|
||||
}
|
||||
|
||||
|
|
|
@ -409,7 +409,8 @@ public class SynchronizeFolderOperation extends SyncOperation {
|
|||
user,
|
||||
true,
|
||||
mContext,
|
||||
getStorageManager()
|
||||
getStorageManager(),
|
||||
syncForInternalTwoWaySyncWorker
|
||||
);
|
||||
mFilesToSyncContents.add(operation);
|
||||
}
|
||||
|
@ -430,7 +431,8 @@ public class SynchronizeFolderOperation extends SyncOperation {
|
|||
user,
|
||||
true,
|
||||
mContext,
|
||||
getStorageManager()
|
||||
getStorageManager(),
|
||||
syncForInternalTwoWaySyncWorker
|
||||
);
|
||||
mFilesToSyncContents.add(operation);
|
||||
}
|
||||
|
|
|
@ -225,7 +225,8 @@ public class FileOperationsHelper {
|
|||
user,
|
||||
true,
|
||||
fileActivity,
|
||||
storageManager);
|
||||
storageManager,
|
||||
false);
|
||||
RemoteOperationResult result = sfo.execute(fileActivity);
|
||||
|
||||
if (result.getCode() == RemoteOperationResult.ResultCode.SYNC_CONFLICT) {
|
||||
|
@ -303,7 +304,8 @@ public class FileOperationsHelper {
|
|||
user,
|
||||
true,
|
||||
fileActivity,
|
||||
storageManager);
|
||||
storageManager,
|
||||
false);
|
||||
RemoteOperationResult result = sfo.execute(fileActivity);
|
||||
fileActivity.dismissLoadingDialog();
|
||||
if (result.getCode() == RemoteOperationResult.ResultCode.SYNC_CONFLICT) {
|
||||
|
|
Loading…
Reference in a new issue