diff options
| author | 2017-12-11 17:02:06 +0000 | |
|---|---|---|
| committer | 2017-12-11 17:44:13 +0000 | |
| commit | 46664a88fe1b2c14c746b421f1ebc92ef71fdcec (patch) | |
| tree | 71dbe7cf33eea78cd31bced4944b39fef2cddd59 | |
| parent | 7888d2f9eb414ed68c7ffe23ed576b8dd82696c3 (diff) | |
Fix bug when generating the textclassifier intent.
Our automated tests should have caught this issue, but they weren't run
on the offending cl (I294f7e4d16c98c6512d56d08d488b204c1f91d47).
Fixes: 70279108
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Change-Id: I99ced41a7c92bece02754fc72966c5440752d8d6
| -rw-r--r-- | core/java/android/view/textclassifier/TextClassifierImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/view/textclassifier/TextClassifierImpl.java b/core/java/android/view/textclassifier/TextClassifierImpl.java index 6cf6b69f4aa6..d7aaee73f976 100644 --- a/core/java/android/view/textclassifier/TextClassifierImpl.java +++ b/core/java/android/view/textclassifier/TextClassifierImpl.java @@ -382,7 +382,7 @@ final class TextClassifierImpl implements TextClassifier { } final String type = getHighestScoringType(classifications); - addActions(builder, IntentFactory.create(mContext, type, text)); + addActions(builder, IntentFactory.create(mContext, type, classifiedText)); return builder.setSignature(getSignature(text, start, end)).build(); } |