mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 22:45:18 +01:00
Make phone numbers in media captions clickable
This commit is contained in:
parent
6033ee2f5c
commit
668fea41f6
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…
Reference in a new issue