diff --git a/omniNotes/src/main/java/it/feio/android/omninotes/MainActivity.java b/omniNotes/src/main/java/it/feio/android/omninotes/MainActivity.java index 032406de4..3f787dba2 100755 --- a/omniNotes/src/main/java/it/feio/android/omninotes/MainActivity.java +++ b/omniNotes/src/main/java/it/feio/android/omninotes/MainActivity.java @@ -515,12 +515,6 @@ public void switchToDetail(Note note) { public void shareNote(Note note) { - String titleText = note.getTitle(); - - String contentText = titleText - + System.getProperty("line.separator") - + note.getContent(); - Intent shareIntent = new Intent(); // Prepare sharing intent with only text if (note.getAttachmentsList().isEmpty()) { @@ -558,8 +552,8 @@ public void shareNote(Note note) { shareIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris); } - shareIntent.putExtra(Intent.EXTRA_SUBJECT, titleText); - shareIntent.putExtra(Intent.EXTRA_TEXT, contentText); + shareIntent.putExtra(Intent.EXTRA_SUBJECT, note.getTitle()); + shareIntent.putExtra(Intent.EXTRA_TEXT, note.getContent()); startActivity(Intent.createChooser(shareIntent, getResources().getString(R.string.share_message_chooser))); }