From ce506fa2f8cf7ffd90a7630cea0ae090c608dd7d Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 26 Apr 2020 10:44:01 +0200 Subject: [PATCH] Custom rendering: strike through support --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index efc10520e3..2936103a9d 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -1999,6 +1999,9 @@ public class HtmlHelper { case "strong": ssb.setSpan(new StyleSpan(Typeface.BOLD), start, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); break; + case "s": + ssb.setSpan(new StrikethroughSpan(), start, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); + break; case "u": ssb.setSpan(new UnderlineSpan(), start, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); break;