From a7d97f7ec5b6b88589ab498d5ef8b2b99b999c83 Mon Sep 17 00:00:00 2001 From: menghanli Date: Tue, 17 Mar 2020 11:25:18 +0800 Subject: [PATCH] Refines the javadoc of the ReplacementSpan.getContentDescription - inconsistent for the doc & API implementation. Bug: 150472098 Test: Manual test Change-Id: Idb1e35245487ac161225f1e53c6308541694b481 --- core/java/android/text/style/ReplacementSpan.java | 4 ++-- .../android/view/accessibility/AccessibilityNodeInfo.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/java/android/text/style/ReplacementSpan.java b/core/java/android/text/style/ReplacementSpan.java index 05532326cd846..9430fd3a26c0e 100644 --- a/core/java/android/text/style/ReplacementSpan.java +++ b/core/java/android/text/style/ReplacementSpan.java @@ -63,7 +63,7 @@ public abstract class ReplacementSpan extends MetricAffectingSpan { int top, int y, int bottom, @NonNull Paint paint); /** - * Gets a brief description of this ImageSpan for use in accessibility support. + * Gets a brief description of this ReplacementSpan for use in accessibility support. * * @return The content description. */ @@ -73,7 +73,7 @@ public abstract class ReplacementSpan extends MetricAffectingSpan { } /** - * Sets the specific content description into ImageSpan. + * Sets the specific content description into ReplacementSpan. * ReplacementSpans are shared with accessibility services, * but only the content description is available from them. * diff --git a/core/java/android/view/accessibility/AccessibilityNodeInfo.java b/core/java/android/view/accessibility/AccessibilityNodeInfo.java index 5fccf40310087..4980b335646b9 100644 --- a/core/java/android/view/accessibility/AccessibilityNodeInfo.java +++ b/core/java/android/view/accessibility/AccessibilityNodeInfo.java @@ -2876,7 +2876,7 @@ public class AccessibilityNodeInfo implements Parcelable { } /** - * Replaces any ClickableSpans in mText with placeholders. + * Replaces any ClickableSpan in the given {@code text} with placeholders. * * @param text The text. * @@ -2910,7 +2910,7 @@ public class AccessibilityNodeInfo implements Parcelable { } /** - * Replace any ImageSpans in mText with its content description. + * Replaces any ReplacementSpan in the given {@code text} if the object has content description. * * @param text The text. *