Loading api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -55697,7 +55697,7 @@ package android.view.textclassifier { method public int describeContents(); method @NonNull public android.os.Bundle getExtras(); method @NonNull public java.util.Collection<android.view.textclassifier.TextLinks.TextLink> getLinks(); method @NonNull public String getText(); method @NonNull public CharSequence getText(); method public void writeToParcel(android.os.Parcel, int); field public static final int APPLY_STRATEGY_IGNORE = 0; // 0x0 field public static final int APPLY_STRATEGY_REPLACE = 1; // 0x1 core/java/android/view/textclassifier/TextLinks.java +17 −9 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ public final class TextLinks implements Parcelable { * Returns the text that was used to generate these links. */ @NonNull public String getText() { public CharSequence getText() { return mFullText; } Loading Loading @@ -370,8 +370,8 @@ public final class TextLinks implements Parcelable { } /** * @return ordered list of locale preferences that can be used to disambiguate * the provided text * Returns an ordered list of locale preferences that can be used to disambiguate the * provided text. */ @Nullable public LocaleList getDefaultLocales() { Loading @@ -379,7 +379,8 @@ public final class TextLinks implements Parcelable { } /** * @return The config representing the set of entities to look for * Returns the config representing the set of entities to look for * * @see Builder#setEntityConfig(EntityConfig) */ @Nullable Loading @@ -398,7 +399,7 @@ public final class TextLinks implements Parcelable { } /** * @return reference time based on which relative dates (e.g. "tomorrow") should be * Returns reference time based on which relative dates (e.g. "tomorrow") should be * interpreted. */ @Nullable Loading Loading @@ -473,6 +474,9 @@ public final class TextLinks implements Parcelable { } /** * Sets ordered list of locale preferences that may be used to disambiguate the * provided text. * * @param defaultLocales ordered list of locale preferences that may be used to * disambiguate the provided text. If no locale preferences exist, * set this to null or an empty locale list. Loading Loading @@ -524,9 +528,11 @@ public final class TextLinks implements Parcelable { } /** * @param referenceTime reference time based on which relative dates (e.g. "tomorrow" * should be interpreted. This should usually be the time when the text was * originally composed. * Sets the reference time based on which relative dates (e.g. * "tomorrow") should be interpreted. * * @param referenceTime reference time based on which relative dates. This should * usually be the time when the text was originally composed. * * @return this builder */ Loading Loading @@ -716,6 +722,8 @@ public final class TextLinks implements Parcelable { } /** * Adds a TextLink. * * @see #addLink(int, int, Map) * @param urlSpan An optional URLSpan to delegate to. NOTE: Not parcelled. */ Loading core/java/android/view/textclassifier/TextLinksParams.java +1 −1 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ public final class TextLinksParams { return TextLinks.STATUS_UNSUPPORTED_CHARACTER; } if (!textString.startsWith(textLinks.getText())) { if (!textString.startsWith(textLinks.getText().toString())) { return TextLinks.STATUS_DIFFERENT_TEXT; } if (textLinks.getLinks().isEmpty()) { Loading Loading
api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -55697,7 +55697,7 @@ package android.view.textclassifier { method public int describeContents(); method @NonNull public android.os.Bundle getExtras(); method @NonNull public java.util.Collection<android.view.textclassifier.TextLinks.TextLink> getLinks(); method @NonNull public String getText(); method @NonNull public CharSequence getText(); method public void writeToParcel(android.os.Parcel, int); field public static final int APPLY_STRATEGY_IGNORE = 0; // 0x0 field public static final int APPLY_STRATEGY_REPLACE = 1; // 0x1
core/java/android/view/textclassifier/TextLinks.java +17 −9 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ public final class TextLinks implements Parcelable { * Returns the text that was used to generate these links. */ @NonNull public String getText() { public CharSequence getText() { return mFullText; } Loading Loading @@ -370,8 +370,8 @@ public final class TextLinks implements Parcelable { } /** * @return ordered list of locale preferences that can be used to disambiguate * the provided text * Returns an ordered list of locale preferences that can be used to disambiguate the * provided text. */ @Nullable public LocaleList getDefaultLocales() { Loading @@ -379,7 +379,8 @@ public final class TextLinks implements Parcelable { } /** * @return The config representing the set of entities to look for * Returns the config representing the set of entities to look for * * @see Builder#setEntityConfig(EntityConfig) */ @Nullable Loading @@ -398,7 +399,7 @@ public final class TextLinks implements Parcelable { } /** * @return reference time based on which relative dates (e.g. "tomorrow") should be * Returns reference time based on which relative dates (e.g. "tomorrow") should be * interpreted. */ @Nullable Loading Loading @@ -473,6 +474,9 @@ public final class TextLinks implements Parcelable { } /** * Sets ordered list of locale preferences that may be used to disambiguate the * provided text. * * @param defaultLocales ordered list of locale preferences that may be used to * disambiguate the provided text. If no locale preferences exist, * set this to null or an empty locale list. Loading Loading @@ -524,9 +528,11 @@ public final class TextLinks implements Parcelable { } /** * @param referenceTime reference time based on which relative dates (e.g. "tomorrow" * should be interpreted. This should usually be the time when the text was * originally composed. * Sets the reference time based on which relative dates (e.g. * "tomorrow") should be interpreted. * * @param referenceTime reference time based on which relative dates. This should * usually be the time when the text was originally composed. * * @return this builder */ Loading Loading @@ -716,6 +722,8 @@ public final class TextLinks implements Parcelable { } /** * Adds a TextLink. * * @see #addLink(int, int, Map) * @param urlSpan An optional URLSpan to delegate to. NOTE: Not parcelled. */ Loading
core/java/android/view/textclassifier/TextLinksParams.java +1 −1 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ public final class TextLinksParams { return TextLinks.STATUS_UNSUPPORTED_CHARACTER; } if (!textString.startsWith(textLinks.getText())) { if (!textString.startsWith(textLinks.getText().toString())) { return TextLinks.STATUS_DIFFERENT_TEXT; } if (textLinks.getLinks().isEmpty()) { Loading