Skip to content

Commit fb98f89

Browse files
committed
Share live editor content for unsaved notes
Sharing used the persisted note content, so a newly typed note could produce an empty share intent until a later save refreshed Room. Fixes #3300 Signed-off-by: xhon-pelushi <xhon@pelushi.com>
1 parent 2baa7d2 commit fb98f89

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎app/src/main/java/it/niedermann/owncloud/notes/edit/BaseNoteFragment.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,9 @@ protected void shareNote() {
352352
return;
353353
}
354354

355-
ShareUtil.openShareDialog(requireContext(), note.getTitle(), note.getContent());
355+
// Prefer the live editor buffer so a newly typed, not-yet-persisted note
356+
// is not shared with an empty/stale Room content field (#3300).
357+
ShareUtil.openShareDialog(requireContext(), note.getTitle(), getContent());
356358
}
357359

358360
@CallSuper

0 commit comments

Comments
 (0)