From c9f90b56df50d8682dee5afddebe3e8a89690fbd Mon Sep 17 00:00:00 2001 From: Nikita Dubrovsky Date: Mon, 14 Dec 2020 22:04:57 -0800 Subject: 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 --- core/java/android/widget/TextView.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (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 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}. * *

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). + * + *

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. * -- cgit v1.2.3