Fix issue #349 - Message content set to null when sharing

This commit is contained in:
Thomas 2022-10-17 15:55:15 +02:00
parent 2ebcdaf330
commit b0eb52cf94
1 changed files with 4 additions and 1 deletions

View File

@ -1830,7 +1830,10 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
else
extra_text = "@" + extra_text;
extra_text += " \uD83D\uDD17 " + url + "\r\n-\n";
extra_text += statusToDeal.text;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
extra_text += Html.fromHtml(statusToDeal.content, Html.FROM_HTML_MODE_LEGACY).toString();
else
extra_text += Html.fromHtml(statusToDeal.content).toString();
} else {
extra_text = url;
}