logging via LOG_OC

removed unnedded try catch
This commit is contained in:
tobiaskaminsky 2017-05-22 08:56:17 +02:00 committed by Mario Danic
parent 778829d69c
commit 977e2fb691
2 changed files with 5 additions and 11 deletions

View file

@ -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());
}
}
}

View file

@ -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();
}