mirror of
https://github.com/DrKLO/Telegram.git
synced 2025-03-27 08:40:37 +01:00
Merge pull request #1384 from astarcev/patch-1
Make phone numbers in media captions clickable
This commit is contained in:
commit
4b531f5571
1 changed files with 1 additions and 1 deletions
|
@ -737,7 +737,7 @@ public class MessageObject {
|
||||||
caption = Emoji.replaceEmoji(messageOwner.media.caption, textPaint.getFontMetricsInt(), AndroidUtilities.dp(20), false);
|
caption = Emoji.replaceEmoji(messageOwner.media.caption, textPaint.getFontMetricsInt(), AndroidUtilities.dp(20), false);
|
||||||
if (containsUrls(caption)) {
|
if (containsUrls(caption)) {
|
||||||
try {
|
try {
|
||||||
Linkify.addLinks((Spannable) caption, Linkify.WEB_URLS);
|
Linkify.addLinks((Spannable) caption, Linkify.WEB_URLS | Linkify.PHONE_NUMBERS);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
FileLog.e("tmessages", e);
|
FileLog.e("tmessages", e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue