diff options
Diffstat (limited to 'android/view/textclassifier/SelectionEvent.java')
-rw-r--r-- | android/view/textclassifier/SelectionEvent.java | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/android/view/textclassifier/SelectionEvent.java b/android/view/textclassifier/SelectionEvent.java index 1e978ccf..b0735969 100644 --- a/android/view/textclassifier/SelectionEvent.java +++ b/android/view/textclassifier/SelectionEvent.java @@ -150,20 +150,6 @@ public final class SelectionEvent implements Parcelable { mInvocationMethod = invocationMethod; } - SelectionEvent( - int start, int end, - @EventType int eventType, @EntityType String entityType, - @InvocationMethod int invocationMethod, @Nullable String resultId, - Logger.Config config) { - this(start, end, eventType, entityType, invocationMethod, resultId); - Preconditions.checkNotNull(config); - setTextClassificationSessionContext( - new TextClassificationContext.Builder( - config.getPackageName(), config.getWidgetType()) - .setWidgetVersion(config.getWidgetVersion()) - .build()); - } - private SelectionEvent(Parcel in) { mAbsoluteStart = in.readInt(); mAbsoluteEnd = in.readInt(); @@ -362,6 +348,7 @@ public final class SelectionEvent implements Parcelable { case SelectionEvent.ACTION_ABANDON: // fall through case SelectionEvent.ACTION_SELECT_ALL: // fall through case SelectionEvent.ACTION_RESET: // fall through + case SelectionEvent.ACTION_OTHER: // fall through return; default: throw new IllegalArgumentException( @@ -667,4 +654,4 @@ public final class SelectionEvent implements Parcelable { return new SelectionEvent[size]; } }; -}
\ No newline at end of file +} |