From a866f5524a2b2705837266617fc3741fcd46c000 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 27 Jan 2023 16:42:12 +0100 Subject: [PATCH] Og values when sharing --- .../android/mastodon/ui/drawer/ComposeAdapter.java | 14 +++++++------- .../metadata/android/en/changelogs/472.txt | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java index 1bf483d6..8e287bd1 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java @@ -953,22 +953,22 @@ public class ComposeAdapter extends RecyclerView.Adapter 0) { - statusList.get(position).text += title + "\n\n"; + statusList.get(position).text += title + " "; } else if (subject != null && subject.trim().length() > 0) { - statusList.get(position).text += subject + "\n\n"; + statusList.get(position).text += subject + " "; } if (description != null && description.trim().length() > 0) { - statusList.get(position).text += description + "\n\n"; if (url != null && !description.contains(url)) { - statusList.get(position).text += url; + statusList.get(position).text += url + "\n"; } + statusList.get(position).text += ">" + description + "\n\n"; } else if (content != null && content.trim().length() > 0) { - statusList.get(position).text += content + "\n\n"; if (!content.contains(url)) { - statusList.get(position).text += url; + statusList.get(position).text += url + "\n"; } + statusList.get(position).text += ">" + content + "\n\n"; } else { - statusList.get(position).text += url; + statusList.get(position).text += url + "\n\n"; } if (saveFilePath != null) { Attachment attachment = new Attachment(); diff --git a/src/fdroid/fastlane/metadata/android/en/changelogs/472.txt b/src/fdroid/fastlane/metadata/android/en/changelogs/472.txt index acb89789..1bc8fb6a 100644 --- a/src/fdroid/fastlane/metadata/android/en/changelogs/472.txt +++ b/src/fdroid/fastlane/metadata/android/en/changelogs/472.txt @@ -5,6 +5,7 @@ Changed: Changed: - Cross actions with two accounts display a dialog +- Order & compact og values when sharing > title - url - content Fixed: - Text cleared when adding a media