From 668fea41f6c30a5038b4a8766236e451b6f9cb45 Mon Sep 17 00:00:00 2001 From: Andrey Startsev Date: Mon, 4 Jan 2016 13:55:21 +0300 Subject: [PATCH] Make phone numbers in media captions clickable --- .../src/main/java/org/telegram/messenger/MessageObject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java b/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java index a505091e1..557b4f063 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/MessageObject.java @@ -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); }