diff options
| author | Nikita Dubrovsky <dubrovsky@google.com> | 2020-12-14 22:04:57 -0800 |
|---|---|---|
| committer | Nikita Dubrovsky <dubrovsky@google.com> | 2020-12-14 22:04:57 -0800 |
| commit | c9f90b56df50d8682dee5afddebe3e8a89690fbd (patch) | |
| tree | c6171be38f2dae1c692ce063f559f2bf3fb64e94 /core/java/android/widget/TextView.java | |
| parent | 7898548ed6411be010c3679ff3cc4fdf1970321d (diff) | |
Hide ContentInfo.partition from the public API
Per API Council feedback, this method will not be exposed in the public
API. App developers will instead use the support library for this.
Rather than removing the method completely, it is marked with @hide so
that it can still be used in system code (e.g. RemoteInputView).
Bug: 174125311
Test: atest CtsViewTestCases:ContentInfoTest
Change-Id: I83b55bea38c0d2b3dc60a16658616e46ebe4cb48
Diffstat (limited to 'core/java/android/widget/TextView.java')
| -rw-r--r-- | core/java/android/widget/TextView.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 02a930017906..40a372c8c2df 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -13736,8 +13736,12 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener * custom behavior should configure a listener via {@link #setOnReceiveContentListener}. * * <p>For non-editable TextViews the default behavior is a no-op (returns the passed-in - * content without acting on it). For editable TextViews the default behavior coerces all - * content to text and inserts into the view. + * content without acting on it). + * + * <p>For editable TextViews the default behavior is to insert text into the view, coercing + * non-text content to text as needed. The MIME types "text/plain" and "text/html" have + * well-defined behavior for this, while other MIME types have reasonable fallback behavior + * (see {@link ClipData.Item#coerceToStyledText}). * * @param payload The content to insert and related metadata. * |
