Merge "Show underline when text show a link"

This commit is contained in:
TreeHugger Robot
2020-02-06 10:37:30 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ public class LinkifyUtils {
@Override @Override
public void updateDrawState(TextPaint ds) { public void updateDrawState(TextPaint ds) {
super.updateDrawState(ds); super.updateDrawState(ds);
ds.setUnderlineText(false); ds.setUnderlineText(true);
} }
}; };
spannableContent.setSpan(spannableLink, beginIndex, endIndex, spannableContent.setSpan(spannableLink, beginIndex, endIndex,

View File

@@ -50,7 +50,7 @@ public class AnnotationSpan extends URLSpan {
@Override @Override
public void updateDrawState(TextPaint ds) { public void updateDrawState(TextPaint ds) {
super.updateDrawState(ds); super.updateDrawState(ds);
ds.setUnderlineText(false); ds.setUnderlineText(true);
} }
public static CharSequence linkify(CharSequence rawText, LinkInfo... linkInfos) { public static CharSequence linkify(CharSequence rawText, LinkInfo... linkInfos) {