diff options
| author | Torne (Richard Coles) <torne@google.com> | 2019-06-04 14:14:05 -0400 |
|---|---|---|
| committer | Torne (Richard Coles) <torne@google.com> | 2019-06-04 14:14:05 -0400 |
| commit | aa68ab828873274a141f6463091abd4fa7315a9b (patch) | |
| tree | 06e7bf8d5b342ec1526f99230f5e217b4105410a /core/java/android/widget/TextView.java | |
| parent | d1ca4823d5dfb53e7c9d15f76f1768ad949ee382 (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.java | 4 |
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 |
