forked from mirrors/Fedilab
Fix issue #87 - Crashes on some profiles with Friendica
This commit is contained in:
parent
c375f54763
commit
3ec8f821e6
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue