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

Commit b6bba333 authored by Jan Althaus's avatar Jan Althaus Committed by Android (Google) Code Review
Browse files

Merge "Minor TextClassifier fixes" into pi-dev

parents a9431996 13a89c94
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -375,13 +375,13 @@ public final class TextClassification implements Parcelable {
     */
    public static final class Builder {

        @NonNull private String mText;
        @NonNull private List<RemoteAction> mActions = new ArrayList<>();
        @NonNull private final Map<String, Float> mEntityConfidence = new ArrayMap<>();
        @Nullable Drawable mLegacyIcon;
        @Nullable String mLegacyLabel;
        @Nullable Intent mLegacyIntent;
        @Nullable OnClickListener mLegacyOnClickListener;
        @Nullable private String mText;
        @Nullable private Drawable mLegacyIcon;
        @Nullable private String mLegacyLabel;
        @Nullable private Intent mLegacyIntent;
        @Nullable private OnClickListener mLegacyOnClickListener;
        @Nullable private String mId;

        /**
+1 −1
Original line number Diff line number Diff line
@@ -339,7 +339,7 @@ public final class TextLinks implements Parcelable {

        /**
         * @return The config representing the set of entities to look for
         * @see #setEntityConfig(TextClassifier.EntityConfig)
         * @see Builder#setEntityConfig(TextClassifier.EntityConfig)
         */
        @Nullable
        public TextClassifier.EntityConfig getEntityConfig() {