Skip to content

Commit

Permalink
Merge pull request #1384 from astarcev/patch-1
Browse files Browse the repository at this point in the history
Make phone numbers in media captions clickable
  • Loading branch information
DrKLO committed Jan 11, 2016
2 parents 6033ee2 + 668fea4 commit 4b531f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ public void generateCaption() {
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);
}
Expand Down

0 comments on commit 4b531f5

Please sign in to comment.