Fixed highlight search / reformatted

pull/209/head
M66B 2 years ago
parent 458d1761c6
commit 54206988f1

@ -3035,14 +3035,14 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
return document.html(); return document.html();
} else { } else {
if (message.ui_found && found && !TextUtils.isEmpty(searched))
HtmlHelper.highlightSearched(context, document, searched);
// Cleanup message // Cleanup message
document = HtmlHelper.sanitizeView(context, document, show_images); document = HtmlHelper.sanitizeView(context, document, show_images);
HtmlHelper.autoLink(document); HtmlHelper.autoLink(document);
if (message.ui_found && found && !TextUtils.isEmpty(searched))
HtmlHelper.highlightSearched(context, document, searched);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
args.putParcelable("actions", getConversationActions(message, document, context)); args.putParcelable("actions", getConversationActions(message, document, context));

Loading…
Cancel
Save