mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Minor optimization to avoid the OutOfMemoryError we have been getting
This commit is contained in:
parent
8e51d6cf14
commit
42194562c1
@ -1447,7 +1447,11 @@ public class LocalStore extends Store implements Serializable {
|
||||
sbHtml.append(htmlifyString(sbText.toString()));
|
||||
}
|
||||
|
||||
Spannable markup = new SpannableString(sbHtml.toString().replaceAll("cid:", "http://cid/"));
|
||||
String html = sbHtml.toString();
|
||||
if (html.indexOf("cid:")!=-1) {
|
||||
html = html.replaceAll("cid:", "http://cid/");
|
||||
}
|
||||
Spannable markup = new SpannableString(html);
|
||||
Linkify.addLinks(markup, Linkify.ALL);
|
||||
StringBuffer sb = new StringBuffer(markup.length());
|
||||
sb.append(markup.toString());
|
||||
|
Loading…
Reference in New Issue
Block a user