diff options
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java index 058da3c33..f8eb6e044 100644 --- a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java +++ b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java @@ -107,8 +107,8 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie }; private static final Linkify.MatchFilter WEBURL_MATCH_FILTER = new Linkify.MatchFilter() { @Override - public boolean acceptMatch(CharSequence charSequence, int start, int end) { - return start < 1 || charSequence.charAt(start - 1) != '@'; + public boolean acceptMatch(CharSequence cs, int start, int end) { + return start < 1 || (cs.charAt(start - 1) != '@' && !cs.subSequence(Math.max(0, start - 3), start).equals("://")); } }; |