1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 18:27:43 +00:00

Quick check html on search

This commit is contained in:
M66B 2019-10-29 13:43:03 +01:00
parent 27d5a8f30f
commit 588393204e

View file

@ -215,9 +215,11 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
File file = EntityMessage.getFile(context, match.id);
if (file.exists()) {
String html = Helper.readText(file);
String text = HtmlHelper.getText(html);
if (text.toLowerCase(Locale.ROOT).contains(find))
match.matched = true;
if (html.toLowerCase(Locale.ROOT).contains(find)) {
String text = HtmlHelper.getText(html);
if (text.toLowerCase(Locale.ROOT).contains(find))
match.matched = true;
}
}
} catch (IOException ex) {
Log.e(ex);