Quick check html on search

pull/164/head
M66B 6 years ago
parent 27d5a8f30f
commit 588393204e

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

Loading…
Cancel
Save