diff options
| author | Joanne Chung <joannechung@google.com> | 2020-01-04 05:46:11 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-01-04 05:46:11 +0000 |
| commit | 0041b17113eb9f4fe85d80bbbec5158e9ae78950 (patch) | |
| tree | 55e9f2f6e5bc64b45b49ab02b47c8fb54cd63505 /core/java/android | |
| parent | 13e8c70032b96143ea257209ccc72c142f783311 (diff) | |
| parent | a4099aaa01b00cd01fc817fdee35d7885b49209f (diff) | |
Merge "Ensure OVERTYPE event has an entity type."
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/view/textclassifier/TextClassificationSession.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/view/textclassifier/TextClassificationSession.java b/core/java/android/view/textclassifier/TextClassificationSession.java index abfbc6c4f4ae..4329a206746d 100644 --- a/core/java/android/view/textclassifier/TextClassificationSession.java +++ b/core/java/android/view/textclassifier/TextClassificationSession.java @@ -20,6 +20,7 @@ import android.annotation.WorkerThread; import android.view.textclassifier.SelectionEvent.InvocationMethod; import com.android.internal.util.Preconditions; + import java.util.Objects; /** @@ -183,6 +184,7 @@ final class TextClassificationSession implements TextClassifier { mSmartEvent = event; break; case SelectionEvent.ACTION_ABANDON: + case SelectionEvent.ACTION_OVERTYPE: if (mPrevEvent != null) { event.setEntityType(mPrevEvent.getEntityType()); } |
