update local note after sync

This commit is contained in:
korelstar 2020-01-02 11:25:26 +01:00 committed by Niedermann IT-Dienstleistungen
parent 6afcca8567
commit f7f2d5e2f9

View file

@ -116,7 +116,8 @@ public class NotePreviewFragment extends BaseNoteFragment {
db.getNoteServerSyncHelper().addCallbackPull(new ICallback() {
@Override
public void onFinish() {
noteContent.setText(markdownProcessor.parse(db.getNote(note.getAccountId(), note.getId()).getContent()));
note = db.getNote(note.getAccountId(), note.getId());
noteContent.setText(markdownProcessor.parse(note.getContent()));
swipeRefreshLayout.setRefreshing(false);
}