summaryrefslogtreecommitdiff
path: root/core/java/android/content/Intent.java
diff options
context:
space:
mode:
authorRhed Jao <rhedjao@google.com>2020-02-07 18:56:56 +0800
committerRhed Jao <rhedjao@google.com>2020-02-07 18:56:56 +0800
commit649b2fb00af4344e247b314b69fbcbcefae8751f (patch)
tree3d7deecaac8be591175b25e301e11d6dfdcc4355 /core/java/android/content/Intent.java
parent358221de3bfc540758849e1a0fb6b2378eb8d0f8 (diff)
Support rich content for accessibility shortcut target
Two attributes are added in AccessibilityShortcutInfo: - animatedImageDrawable - htmlDescription Bug: 148929247 Test: atest AccessibilityShortcutInfoTest Change-Id: Ibf41775cbfee0fdd946541bbae45ac088d11d693
Diffstat (limited to 'core/java/android/content/Intent.java')
-rw-r--r--core/java/android/content/Intent.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java
index acffec98b2fc..7091a278640b 100644
--- a/core/java/android/content/Intent.java
+++ b/core/java/android/content/Intent.java
@@ -4962,11 +4962,14 @@ public class Intent implements Parcelable, Cloneable {
* <pre>
* &lt;accessibility-shortcut-target
* android:description="@string/shortcut_target_description"
- * android:summary="@string/shortcut_target_summary" /&gt;
+ * android:summary="@string/shortcut_target_summary"
+ * android:animatedImageDrawable="@drawable/shortcut_target_animated_image"
+ * android:htmlDescription="@string/shortcut_target_html_description" /&gt;
* </pre>
* <p>
* Both description and summary are necessary. The system will ignore the accessibility
- * shortcut target if they are missing.
+ * shortcut target if they are missing. The animated image and html description are supported
+ * to help users understand how to use the shortcut target.
* </p>
*/
@SdkConstant(SdkConstantType.INTENT_CATEGORY)