1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-06-30 22:22:57 +00:00

Merge pull request #1384 from astarcev/patch-1

Make phone numbers in media captions clickable
This commit is contained in:
DrKLO 2016-01-11 19:46:38 +03:00
commit 4b531f5571

View File

@ -737,7 +737,7 @@ public class MessageObject {
caption = Emoji.replaceEmoji(messageOwner.media.caption, textPaint.getFontMetricsInt(), AndroidUtilities.dp(20), false);
if (containsUrls(caption)) {
try {
Linkify.addLinks((Spannable) caption, Linkify.WEB_URLS);
Linkify.addLinks((Spannable) caption, Linkify.WEB_URLS | Linkify.PHONE_NUMBERS);
} catch (Exception e) {
FileLog.e("tmessages", e);
}