Skip to content

Commit 3fbf192

Browse files
Merge pull request #3303 from xhon-pelushi/fix/share-unsaved-note-content-3300
Share live editor content for unsaved notes
2 parents 437456d + 2b81104 commit 3fbf192

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)