From aa68ab828873274a141f6463091abd4fa7315a9b Mon Sep 17 00:00:00 2001 From: "Torne (Richard Coles)" Date: Tue, 4 Jun 2019 14:14:05 -0400 Subject: 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 --- core/java/android/widget/TextView.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/java/android/widget/TextView.java') 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. * + *

Note: + * {@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 -- cgit v1.2.3