MCPcopy Create free account
hub / github.com/M66B/FairEmail / getPreview

Method getPreview

app/src/main/java/eu/faircode/email/HtmlHelper.java:2665–2673  ·  view source on GitHub ↗
(String text)

Source from the content-addressed store, hash-verified

2663 }
2664
2665 static String getPreview(String text) {
2666 if (text == null)
2667 return null;
2668
2669 String preview = text
2670 .replace("\u200C", "") // Zero-width non-joiner
2671 .replaceAll("\\s+", " ");
2672 return truncate(preview, PREVIEW_SIZE);
2673 }
2674
2675 static String getFullText(Context context, String body) {
2676 try {

Callers 14

onSendMethod · 0.95
onExecuteMethod · 0.95
onExecuteMethod · 0.95
decodeMessageMethod · 0.95
onExecuteMethod · 0.95
answerMethod · 0.95
onActionAutomationMethod · 0.95
speakMethod · 0.95
onBodyMethod · 0.95
onSynchronizeMessagesMethod · 0.95
synchronizeMessageMethod · 0.95
downloadMessageMethod · 0.95

Calls 2

truncateMethod · 0.95
replaceMethod · 0.45

Tested by

no test coverage detected