mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 02:37:16 +00:00
Debug aid
This commit is contained in:
parent
83478a54fc
commit
83ed76a1ef
1 changed files with 7 additions and 0 deletions
|
@ -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")))
|
||||
|
|
Loading…
Reference in a new issue