mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-02 22:43:36 +00:00
Merge pull request #1385 from Kondra007/patch-1
Increase limit to linkify phone numbers from 100 to 200
This commit is contained in:
commit
f21bac97b7
|
@ -782,7 +782,7 @@ public class MessageObject {
|
||||||
|
|
||||||
public static void addLinks(CharSequence messageText, boolean botCommands) {
|
public static void addLinks(CharSequence messageText, boolean botCommands) {
|
||||||
if (messageText instanceof Spannable && containsUrls(messageText)) {
|
if (messageText instanceof Spannable && containsUrls(messageText)) {
|
||||||
if (messageText.length() < 100) {
|
if (messageText.length() < 200) {
|
||||||
try {
|
try {
|
||||||
Linkify.addLinks((Spannable) messageText, Linkify.WEB_URLS | Linkify.PHONE_NUMBERS);
|
Linkify.addLinks((Spannable) messageText, Linkify.WEB_URLS | Linkify.PHONE_NUMBERS);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user