OSDN Git Service

Revise javadoc of EXTRA_FROM_TEXT_CLASSIFIER
authorTony Mak <tonymak@google.com>
Mon, 28 Jan 2019 15:14:36 +0000 (15:14 +0000)
committerTony Mak <tonymak@google.com>
Wed, 30 Jan 2019 14:41:22 +0000 (14:41 +0000)
Test: make

FIXES: 123223220

Change-Id: I4e79cab261a3540cc94d2cf19950f5cba22e06fe

core/java/android/view/textclassifier/TextClassifier.java

index 5a56136..8a688d8 100644 (file)
@@ -164,9 +164,10 @@ public interface TextClassifier {
     TextClassifier NO_OP = new TextClassifier() {};
 
     /**
-     * Used as a boolean value to indicate the intent is generated by TextClassifier.
+     * Extra that is included on activity intents coming from a TextClassifier when
+     * it suggests actions to its caller.
      * <p>
-     * All {@link TextClassifier} implementations should set this boolean extra to be true in their
+     * All {@link TextClassifier} implementations should make sure this extra exists in their
      * generated intents.
      */
     String EXTRA_FROM_TEXT_CLASSIFIER = "android.view.textclassifier.extra.FROM_TEXT_CLASSIFIER";