Show underline when text show a link

Hyperlinked text should have underline instead of using color only,
such that color blind users are able to compare to the surrounding text.

Change-Id: I7e93f76ebd40077710385e8670176e878b021ef8
Fix: 148839397
Test: visual see link in "Skip songs", "Silence interruptions", "Reach to check phone".
This commit is contained in:
Tsung-Mao Fang
2020-02-06 16:36:59 +08:00
parent bc5e1646d5
commit 605218c57b
2 changed files with 2 additions and 2 deletions

View File

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