1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 02:37:16 +00:00

Debug aid

This commit is contained in:
M66B 2022-02-15 16:07:24 +01:00
parent 83478a54fc
commit 83ed76a1ef

View file

@ -3220,6 +3220,13 @@ public class HtmlHelper {
setSpan(ssb, StyleHelper.getTypefaceSpan("Cousine", context), start, ssb.length());
} catch (Throwable ex) {
Log.e(ex);
if (BuildConfig.DEBUG || debug) {
int s = ssb.length();
ssb.append(ex.toString()).append('\n')
.append(android.util.Log.getStackTraceString(ex)).append('\n');
setSpan(ssb, StyleHelper.getTypefaceSpan("Cousine", context), s, ssb.length());
setSpan(ssb, new RelativeSizeSpan(HtmlHelper.FONT_SMALL), s, ssb.length());
}
}
if ("true".equals(element.attr("x-block")))