summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TextView.java
diff options
context:
space:
mode:
authorNikita Dubrovsky <dubrovsky@google.com>2020-12-16 17:41:41 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-12-16 17:41:41 +0000
commit9d3615f71d9fa753dbff7d3c0f453e549728925f (patch)
tree8d9468efba724acbc762bb9e5509137a59fafe44 /core/java/android/widget/TextView.java
parent10d6c7c35a8dba46e2d9e1552edaa95df9139fa1 (diff)
parentc9f90b56df50d8682dee5afddebe3e8a89690fbd (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.java8
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.
*