mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-24 08:38:51 -05:00
Fix linkification of text/plain messages with URLs starting at index 0
of the body. Possibly the fix for issue 213 and maybe also issue 55
This commit is contained in:
parent
65bbc7e68a
commit
5b49112a98
@ -839,7 +839,7 @@ public class MessageView extends Activity
|
||||
StringBuffer sb = new StringBuffer();
|
||||
while (m.find()) {
|
||||
int start = m.start();
|
||||
if (start != 0 && text.charAt(start - 1) != '@') {
|
||||
if (start == 0 || (start != 0 && text.charAt(start - 1) != '@')) {
|
||||
m.appendReplacement(sb, "<a href=\"$0\">$0</a>");
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user