// Switch to the pending view.
setNotesEditState(false, true, pendingNotes);
// Submit the delta.
ReportRequest editRequest = expensesRequestFactory.reportRequest();
ReportProxy editableReport = editRequest.edit(report);
editableReport.setNotes(pendingNotes);
editRequest.persist().using(editableReport).fire(new Receiver<Void>() {
@Override
public void onSuccess(Void ignore) {
}
});
}