mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-21 20:35:58 +03:00
set imageurl prefix to use new nextcloud-commons capabilities
This commit is contained in:
parent
bea3f9691c
commit
1c92b16740
1 changed files with 1 additions and 0 deletions
|
@ -126,6 +126,7 @@ public class NotePreviewFragment extends SearchableBaseNoteFragment implements O
|
|||
super.onNoteLoaded(note);
|
||||
noteLoaded = true;
|
||||
registerInternalNoteLinkHandler();
|
||||
binding.singleNoteContent.setMarkdownImageUrlPrefix(repo.getAccountById(note.getAccountId()).getUrl()+"/index.php/apps/notes/notes/"+note.getRemoteId()+"/attachment?path=");
|
||||
changedText = note.getContent();
|
||||
binding.singleNoteContent.setMarkdownString(note.getContent(), setScrollY);
|
||||
binding.singleNoteContent.getMarkdownString().observe(requireActivity(), (newContent) -> {
|
||||
|
|
Loading…
Reference in a new issue