// if (authRefreshNeeded)
// if (!refreshConnection())
// return;
Note enNote = notes.get(i);
try {
if (enNote.getUpdateSequenceNum() > 0 && (enNote.isActive() == false || enNote.getDeleted() > 0)) {
// Check that the note is valid.
if (enNote.isActive() == true || enNote.getDeleted() == 0) {
conn.getNoteTable().deleteNote(enNote.getGuid());
enNote = conn.getNoteTable().getNote(enNote.getGuid(), false, false, false, false, false);
}
if (syncDeletedContent) {
logger.log(logger.EXTREME, "Deleted note found & synch content selected");
Note delNote = conn.getNoteTable().getNote(enNote.getGuid(), true, true, true, true, true);
delNote = getNoteContent(delNote);
delNote = noteStore.updateNote(authToken, delNote);
enNote.setUpdateSequenceNum(delNote.getUpdateSequenceNum());
conn.getNoteTable().updateNoteSequence(enNote.getGuid(), enNote.getUpdateSequenceNum());
} else {
logger.log(logger.EXTREME, "Deleted note found & sync content not selected");
int usn = noteStore.deleteNote(authToken, enNote.getGuid());
enNote.setUpdateSequenceNum(usn);