mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 06:31:17 +00:00
Added fail safe
This commit is contained in:
parent
84c3741dee
commit
d17ef51361
1 changed files with 6 additions and 7 deletions
|
@ -2781,14 +2781,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
if (description == null)
|
||||
tvCalendarDescription.setText(description);
|
||||
else {
|
||||
Document d = JsoupEx.parse(description);
|
||||
if (d.selectFirst("html") == null)
|
||||
else
|
||||
try {
|
||||
tvCalendarDescription.setText(HtmlHelper.fromHtml(description, context));
|
||||
} catch (Throwable ex) {
|
||||
Log.w(ex);
|
||||
tvCalendarDescription.setText(description);
|
||||
else
|
||||
tvCalendarDescription.setText(
|
||||
HtmlHelper.fromDocument(context, d, null, null));
|
||||
}
|
||||
}
|
||||
tvCalendarDescription.setVisibility(TextUtils.isEmpty(description) ? View.GONE : View.VISIBLE);
|
||||
|
||||
tvCalendarLocation.setText(location);
|
||||
|
|
Loading…
Reference in a new issue