|
@@ -185,17 +185,11 @@ public class ContactsBackupFragment extends FileFragment implements DatePickerDi
|
|
FileDataStorageManager storageManager = new FileDataStorageManager(account,
|
|
FileDataStorageManager storageManager = new FileDataStorageManager(account,
|
|
getActivity().getContentResolver());
|
|
getActivity().getContentResolver());
|
|
|
|
|
|
- RemoteOperationResult result = new RemoteOperationResult(RemoteOperationResult.ResultCode.UNKNOWN_ERROR);
|
|
|
|
- try {
|
|
|
|
- OCFile folder = storageManager.getFileByPath(path[0]);
|
|
|
|
- RefreshFolderOperation operation = new RefreshFolderOperation(folder, System.currentTimeMillis(),
|
|
|
|
- false, false, false, storageManager, account, getContext());
|
|
|
|
-
|
|
|
|
- result = operation.execute(account, getContext());
|
|
|
|
- } catch (Exception e) {
|
|
|
|
- e.printStackTrace();
|
|
|
|
- }
|
|
|
|
|
|
+ OCFile folder = storageManager.getFileByPath(path[0]);
|
|
|
|
+ RefreshFolderOperation operation = new RefreshFolderOperation(folder, System.currentTimeMillis(),
|
|
|
|
+ false, false, false, storageManager, account, getContext());
|
|
|
|
|
|
|
|
+ RemoteOperationResult result = operation.execute(account, getContext());
|
|
return result.isSuccess();
|
|
return result.isSuccess();
|
|
}
|
|
}
|
|
|
|
|