Commit b7d966a8 authored by Thomas's avatar Thomas
Browse files

Fix issue #276

parent e0ce8f30
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
@@ -416,15 +416,22 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
        if (description == null && content == null) {
            return;
        }
        boolean addUrl = true;
        if (url != null && content != null && content.trim().length() > url.trim().length()) {
            statusList.get(position).text = content;
            statusList.get(position).text += "\n\n";
            addUrl = false;
        } else {
            if (title != null || subject != null) {
                statusList.get(position).text = title != null ? title : subject;
                statusList.get(position).text += "\n\n";
            } else {
                statusList.get(position).text = "";
            }
        }
        statusList.get(position).text += description != null ? description : content;
        if (url != null && addUrl) {
            statusList.get(position).text += "\n\n";
        if (url != null) {
            statusList.get(position).text += url;
        }
        if (saveFilePath != null) {