Fix Pull 2 Refresh in Preview (outdated note)

This commit is contained in:
Stefan Niedermann 2020-05-08 11:40:05 +02:00
parent 463dee551e
commit cefb6a9df2

View file

@ -203,6 +203,7 @@ public class NotePreviewFragment extends SearchableBaseNoteFragment implements O
SingleSignOnAccount ssoAccount = SingleAccountHelper.getCurrentSingleSignOnAccount(requireContext());
db.getNoteServerSyncHelper().addCallbackPull(ssoAccount, () -> {
note = db.getNote(note.getAccountId(), note.getId());
changedText = note.getContent();
binding.singleNoteContent.setText(parseCompat(markdownProcessor, replaceNoteLinksWithDummyUrls(note.getContent(), db.getRemoteIds(note.getAccountId()))));
binding.swiperefreshlayout.setRefreshing(false);
});