Fix issue #87 - Crashes on some profiles with Friendica

This commit is contained in:
Thomas 2022-05-23 14:46:46 +02:00
parent c375f54763
commit 3ec8f821e6
1 changed files with 4 additions and 1 deletions

View File

@ -98,8 +98,11 @@ public class SpannableHelper {
* @param text String - text to convert, it can be content, spoiler, poll items, etc.
* @return Spannable string
*/
private static Spannable convert(@NonNull Context context, @NonNull Status status, @NonNull String text) {
private static Spannable convert(@NonNull Context context, @NonNull Status status, String text) {
SpannableString initialContent;
if (text == null) {
return null;
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
initialContent = new SpannableString(Html.fromHtml(text, Html.FROM_HTML_MODE_LEGACY));
else