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

Commit dd68de50 authored by Jan Althaus's avatar Jan Althaus
Browse files

Fixing generateLinks and java docs

Also fixed import order

Test: Ran framework core tests
Change-Id: I8e99cfc8bab8f7c9f18310634c9565200df43e7f
parent 0172104c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -232,6 +232,7 @@ public final class TextClassifierImpl implements TextClassifier {
                }
                builder.addLink(span.getStartIndex(), span.getEndIndex(), entityScores);
            }
            return builder.build();
        } catch (Throwable t) {
            // Avoid throwing from this method. Log the error.
            Log.e(LOG_TAG, "Error getting links info.", t);
+4 −4
Original line number Diff line number Diff line
@@ -23,13 +23,13 @@ import android.annotation.Nullable;
import android.os.LocaleList;
import android.os.Parcel;
import android.os.Parcelable;
import android.widget.TextView;
import android.text.Spannable;
import android.text.style.ClickableSpan;
import android.text.util.Linkify;
import android.text.util.Linkify.LinkifyMask;
import android.view.View;
import android.view.textclassifier.TextClassifier.EntityType;
import android.widget.TextView;

import com.android.internal.util.Preconditions;

@@ -351,7 +351,7 @@ public final class TextLinks implements Parcelable {
         * @throws IllegalArgumentException if applyStrategy is not valid
         *
         * @see #APPLY_STRATEGY_IGNORE
         * @see #APPLY_STRAGETY_REPLACE
         * @see #APPLY_STRATEGY_REPLACE
         */
        public Options setApplyStrategy(@ApplyStrategy int applyStrategy) {
            checkValidApplyStrategy(applyStrategy);
@@ -391,8 +391,8 @@ public final class TextLinks implements Parcelable {
         * @return the strategy for resolving conflictswhen applying generated links to text that
         * already have links.
         *
         * @see #APPLY_STATEGY_IGNORE
         * @see #APPLY_STRAGETY_REPLACE
         * @see #APPLY_STRATEGY_IGNORE
         * @see #APPLY_STRATEGY_REPLACE
         */
        @ApplyStrategy
        public int getApplyStrategy() {