Og values when sharing

This commit is contained in:
Thomas 2023-01-27 16:42:12 +01:00
parent 654f7850de
commit a866f5524a
2 changed files with 8 additions and 7 deletions

View file

@ -953,22 +953,22 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
int position = statusList.size() - 1;
statusList.get(position).text = "";
if (title != null && title.trim().length() > 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();

View file

@ -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