From 1ff7196be945f29c0ba75595d447e504dbafffc7 Mon Sep 17 00:00:00 2001 From: Roozbeh Pournader Date: Fri, 13 Feb 2015 17:08:27 -0800 Subject: [PATCH] Document the limitations of Linkify addresses Explain that we are using WebView#findAddresses() which is limited to US addresses at the moment (at least according to its documentation), among various other limitations. Bug: 5847264 Change-Id: If86c6d7c11cc080f0fe3401ffb7bce8068c6016f --- core/java/android/text/util/Linkify.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/java/android/text/util/Linkify.java b/core/java/android/text/util/Linkify.java index c1341e16f803e..8e9eb48268b8d 100644 --- a/core/java/android/text/util/Linkify.java +++ b/core/java/android/text/util/Linkify.java @@ -78,7 +78,10 @@ public class Linkify { /** * Bit field indicating that street addresses should be matched in methods that - * take an options mask + * take an options mask. Note that this uses the + * {@link android.webkit.WebView#findAddress(String) findAddress()} method in + * {@link android.webkit.WebView} for finding addresses, which has various + * limitations. */ public static final int MAP_ADDRESSES = 0x08;