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

Commit 605218c5 authored by Tsung-Mao Fang's avatar Tsung-Mao Fang
Browse files

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".
parent bc5e1646
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ public class AnnotationSpan extends URLSpan {
    @Override
    public void updateDrawState(TextPaint ds) {
        super.updateDrawState(ds);
        ds.setUnderlineText(false);
        ds.setUnderlineText(true);
    }

    public static CharSequence linkify(CharSequence rawText, LinkInfo... linkInfos) {