Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f85e8a3 authored by Kang Li's avatar Kang Li
Browse files

Adds a comment to EXTRA_CONTENT_ANNOTATIONS to prevent developers from

using colons in their customized annotations.

bug: 37496130
Test: skipped, because all changes are in comments.
Change-Id: Ifd7592c50f5079bb6035b051bf63f986c7cbae84
parent e1a79537
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -4311,9 +4311,10 @@ public class Intent implements Parcelable, Cloneable {
     * <p>Annotations should describe the major components or topics of the content. It is up to
     * apps initiating {@link #ACTION_CHOOSER} to learn and add annotations. Annotations should be
     * learned in advance, e.g., when creating or saving content, to avoid increasing latency to
     * start {@link #ACTION_CHOOSER}. Performance on customized annotations can suffer, if they are
     * rarely used for {@link #ACTION_CHOOSER} in the past 14 days. Therefore, it is recommended to
     * use the following annotations when applicable.</p>
     * start {@link #ACTION_CHOOSER}. Names of customized annotations should not contain the colon
     * character. Performance on customized annotations can suffer, if they are rarely used for
     * {@link #ACTION_CHOOSER} in the past 14 days. Therefore, it is recommended to use the
     * following annotations when applicable.</p>
     * <ul>
     *     <li>"product" represents that the topic of the content is mainly about products, e.g.,
     *     health & beauty, and office supplies.</li>