(Context context, Document parsed, boolean show_images)
| 438 | } |
| 439 | |
| 440 | static Document sanitizeView(Context context, Document parsed, boolean show_images) { |
| 441 | try { |
| 442 | return sanitize(context, parsed, true, show_images); |
| 443 | } catch (Throwable ex) { |
| 444 | // OutOfMemoryError |
| 445 | Log.e(ex); |
| 446 | Document document = Document.createShell(""); |
| 447 | Element strong = document.createElement("strong"); |
| 448 | strong.text(new ThrowableWrapper(ex).getSafeStackTraceString()); |
| 449 | document.body().appendChild(strong); |
| 450 | return document; |
| 451 | } |
| 452 | } |
| 453 | |
| 454 | private static int getMaxFormatTextSize(Context context) { |
| 455 | SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); |
no test coverage detected