|
@@ -90,7 +90,7 @@ import com.owncloud.android.operations.MoveFileOperation;
|
|
|
import com.owncloud.android.operations.RemoveFileOperation;
|
|
|
import com.owncloud.android.operations.RenameFileOperation;
|
|
|
import com.owncloud.android.operations.SynchronizeFileOperation;
|
|
|
-import com.owncloud.android.operations.SynchronizeFolderOperation;
|
|
|
+import com.owncloud.android.operations.RefreshFolderOperation;
|
|
|
import com.owncloud.android.operations.UnshareLinkOperation;
|
|
|
import com.owncloud.android.services.observer.FileObserverService;
|
|
|
import com.owncloud.android.syncadapter.FileSyncAdapter;
|
|
@@ -797,8 +797,8 @@ OnSslUntrustedCertListener, OnEnforceableRefreshListener {
|
|
|
IntentFilter syncIntentFilter = new IntentFilter(FileSyncAdapter.EVENT_FULL_SYNC_START);
|
|
|
syncIntentFilter.addAction(FileSyncAdapter.EVENT_FULL_SYNC_END);
|
|
|
syncIntentFilter.addAction(FileSyncAdapter.EVENT_FULL_SYNC_FOLDER_CONTENTS_SYNCED);
|
|
|
- syncIntentFilter.addAction(SynchronizeFolderOperation.EVENT_SINGLE_FOLDER_CONTENTS_SYNCED);
|
|
|
- syncIntentFilter.addAction(SynchronizeFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED);
|
|
|
+ syncIntentFilter.addAction(RefreshFolderOperation.EVENT_SINGLE_FOLDER_CONTENTS_SYNCED);
|
|
|
+ syncIntentFilter.addAction(RefreshFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED);
|
|
|
mSyncBroadcastReceiver = new SyncBroadcastReceiver();
|
|
|
registerReceiver(mSyncBroadcastReceiver, syncIntentFilter);
|
|
|
//LocalBroadcastManager.getInstance(this).registerReceiver(mSyncBroadcastReceiver, syncIntentFilter);
|
|
@@ -1082,9 +1082,9 @@ OnSslUntrustedCertListener, OnEnforceableRefreshListener {
|
|
|
setFile(currentFile);
|
|
|
}
|
|
|
|
|
|
- mSyncInProgress = (!FileSyncAdapter.EVENT_FULL_SYNC_END.equals(event) && !SynchronizeFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED.equals(event));
|
|
|
+ mSyncInProgress = (!FileSyncAdapter.EVENT_FULL_SYNC_END.equals(event) && !RefreshFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED.equals(event));
|
|
|
|
|
|
- if (SynchronizeFolderOperation.EVENT_SINGLE_FOLDER_CONTENTS_SYNCED.
|
|
|
+ if (RefreshFolderOperation.EVENT_SINGLE_FOLDER_CONTENTS_SYNCED.
|
|
|
equals(event) &&
|
|
|
/// TODO refactor and make common
|
|
|
synchResult != null && !synchResult.isSuccess() &&
|
|
@@ -1736,7 +1736,7 @@ OnSslUntrustedCertListener, OnEnforceableRefreshListener {
|
|
|
mSyncInProgress = true;
|
|
|
|
|
|
// perform folder synchronization
|
|
|
- RemoteOperation synchFolderOp = new SynchronizeFolderOperation( folder,
|
|
|
+ RemoteOperation synchFolderOp = new RefreshFolderOperation( folder,
|
|
|
currentSyncTime,
|
|
|
false,
|
|
|
getFileOperationsHelper().isSharedSupported(),
|