aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-04-13 21:36:28 +0200
committerChristian Schneppe <christian@pix-art.de>2017-04-13 21:36:28 +0200
commit347a623573b75b916d506d82b33bde0d7757ab86 (patch)
treec2ce91e8c5a9d1c4c35e161c866f260e8ad1c103
parente752f5ad1eff417e2b4a9620c94e3e78071cea39 (diff)
do not linkify urls starting with a dot
-rw-r--r--src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java2
1 files changed, 1 insertions, 1 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 4519406f9..071d62fa9 100644
--- a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
+++ b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
@@ -109,7 +109,7 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie
private static final Linkify.MatchFilter WEBURL_MATCH_FILTER = new Linkify.MatchFilter() {
@Override
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("://"));
+ return start < 1 || (cs.charAt(start - 1) != '@' && cs.charAt(start - 1) != '.' && !cs.subSequence(Math.max(0, start - 3), start).equals("://"));
}
};