Loading core/java/android/view/textclassifier/TextClassifierImpl.java +1 −0 Original line number Diff line number Diff line Loading @@ -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); Loading core/java/android/view/textclassifier/TextLinks.java +4 −4 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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); Loading Loading @@ -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() { Loading Loading
core/java/android/view/textclassifier/TextClassifierImpl.java +1 −0 Original line number Diff line number Diff line Loading @@ -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); Loading
core/java/android/view/textclassifier/TextLinks.java +4 −4 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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); Loading Loading @@ -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() { Loading