summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TextView.java
diff options
context:
space:
mode:
authorTorne (Richard Coles) <torne@google.com>2019-06-04 14:14:05 -0400
committerTorne (Richard Coles) <torne@google.com>2019-06-04 14:14:05 -0400
commitaa68ab828873274a141f6463091abd4fa7315a9b (patch)
tree06e7bf8d5b342ec1526f99230f5e217b4105410a /core/java/android/widget/TextView.java
parentd1ca4823d5dfb53e7c9d15f76f1768ad949ee382 (diff)
Clarify problems with Linkify.MAP_ADDRESSES.
Update the documentation for WebView.findAddress, as well as the related functionality in Linkify and TextView, to clarify why the method is deprecated, why it should not be used, and that it can cause unexpected exceptions to be thrown from several places on older OS versions. Fixes: 24676033 Test: m offline-sdk-docs Change-Id: I45d82b9a4c9cf62d9566898dd21cd2139ad98f37
Diffstat (limited to 'core/java/android/widget/TextView.java')
-rw-r--r--core/java/android/widget/TextView.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java
index a9e183ad5bf2..073965b35101 100644
--- a/core/java/android/widget/TextView.java
+++ b/core/java/android/widget/TextView.java
@@ -4960,6 +4960,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
* android.text.util.Linkify#ALL Linkify.ALL} and peers for
* possible values.
*
+ * <p class="note"><b>Note:</b>
+ * {@link android.text.util.Linkify#MAP_ADDRESSES Linkify.MAP_ADDRESSES}
+ * is deprecated and should be avoided; see its documentation.
+ *
* @attr ref android.R.styleable#TextView_autoLink
*/
@android.view.RemotableViewMethod