From 5b49112a98edb7db6de4f6285472d5cd6ba1fe93 Mon Sep 17 00:00:00 2001 From: Daniel Applebaum Date: Tue, 13 Jan 2009 03:39:59 +0000 Subject: [PATCH] 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 --- src/com/android/email/activity/MessageView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/email/activity/MessageView.java b/src/com/android/email/activity/MessageView.java index f1009808d..78e3b6a77 100644 --- a/src/com/android/email/activity/MessageView.java +++ b/src/com/android/email/activity/MessageView.java @@ -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, "$0"); } else {