mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
logging via LOG_OC
removed unnedded try catch
This commit is contained in:
parent
778829d69c
commit
977e2fb691
2 changed files with 5 additions and 11 deletions
|
@ -472,7 +472,7 @@ public class ContactListFragment extends FileFragment {
|
|||
try {
|
||||
contactListAdapter.replaceVCards(Ezvcard.parse(file).all());
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
Log_OC.e(TAG, "IO Exception: " + file.getAbsolutePath());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -185,17 +185,11 @@ public class ContactsBackupFragment extends FileFragment implements DatePickerDi
|
|||
FileDataStorageManager storageManager = new FileDataStorageManager(account,
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue