mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +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)
|
if (description == null)
|
||||||
tvCalendarDescription.setText(description);
|
tvCalendarDescription.setText(description);
|
||||||
else {
|
else
|
||||||
Document d = JsoupEx.parse(description);
|
try {
|
||||||
if (d.selectFirst("html") == null)
|
tvCalendarDescription.setText(HtmlHelper.fromHtml(description, context));
|
||||||
|
} catch (Throwable ex) {
|
||||||
|
Log.w(ex);
|
||||||
tvCalendarDescription.setText(description);
|
tvCalendarDescription.setText(description);
|
||||||
else
|
}
|
||||||
tvCalendarDescription.setText(
|
|
||||||
HtmlHelper.fromDocument(context, d, null, null));
|
|
||||||
}
|
|
||||||
tvCalendarDescription.setVisibility(TextUtils.isEmpty(description) ? View.GONE : View.VISIBLE);
|
tvCalendarDescription.setVisibility(TextUtils.isEmpty(description) ? View.GONE : View.VISIBLE);
|
||||||
|
|
||||||
tvCalendarLocation.setText(location);
|
tvCalendarLocation.setText(location);
|
||||||
|
|
Loading…
Reference in a new issue