diff options
| author | Nikita Dubrovsky <dubrovsky@google.com> | 2020-12-16 17:41:41 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-12-16 17:41:41 +0000 |
| commit | 9d3615f71d9fa753dbff7d3c0f453e549728925f (patch) | |
| tree | 8d9468efba724acbc762bb9e5509137a59fafe44 /core/java/android/widget/TextView.java | |
| parent | 10d6c7c35a8dba46e2d9e1552edaa95df9139fa1 (diff) | |
| parent | c9f90b56df50d8682dee5afddebe3e8a89690fbd (diff) | |
Merge "Hide ContentInfo.partition from the public API"
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 ffe1b382cfda..12c91fac0c65 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -13743,8 +13743,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. * |
