|
|
|
@ -125,7 +125,7 @@ public class SpannableHelper {
|
|
|
|
|
linkColor = link_color;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
linkColor = ThemeHelper.getAttColor(context, R.attr.linkColor);
|
|
|
|
|
linkColor = -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SpannableString initialContent;
|
|
|
|
@ -474,8 +474,10 @@ public class SpannableHelper {
|
|
|
|
|
@Override
|
|
|
|
|
public void updateDrawState(@NonNull TextPaint ds) {
|
|
|
|
|
super.updateDrawState(ds);
|
|
|
|
|
if (linkColor != -1) {
|
|
|
|
|
ds.setColor(linkColor);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}, matchStart, matchEnd, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
|
|
|
|
}
|
|
|
|
@ -701,8 +703,10 @@ public class SpannableHelper {
|
|
|
|
|
public void updateDrawState(@NonNull TextPaint ds) {
|
|
|
|
|
super.updateDrawState(ds);
|
|
|
|
|
ds.setUnderlineText(false);
|
|
|
|
|
if (linkColor != -1) {
|
|
|
|
|
ds.setColor(linkColor);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, matchStart, matchEnd, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -735,8 +739,10 @@ public class SpannableHelper {
|
|
|
|
|
public void updateDrawState(@NonNull TextPaint ds) {
|
|
|
|
|
super.updateDrawState(ds);
|
|
|
|
|
ds.setUnderlineText(false);
|
|
|
|
|
if (linkColor != -1) {
|
|
|
|
|
ds.setColor(linkColor);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, matchStart, matchEnd, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -772,8 +778,10 @@ public class SpannableHelper {
|
|
|
|
|
public void updateDrawState(@NonNull TextPaint ds) {
|
|
|
|
|
super.updateDrawState(ds);
|
|
|
|
|
ds.setUnderlineText(false);
|
|
|
|
|
if (linkColor != -1) {
|
|
|
|
|
ds.setColor(linkColor);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, matchStart, matchEnd, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -929,8 +937,10 @@ public class SpannableHelper {
|
|
|
|
|
public void updateDrawState(@NonNull TextPaint ds) {
|
|
|
|
|
super.updateDrawState(ds);
|
|
|
|
|
ds.setUnderlineText(false);
|
|
|
|
|
if (linkColor != -1) {
|
|
|
|
|
ds.setColor(linkColor);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}, matchStart, matchEnd, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
|
|
|
|
}
|
|
|
|
@ -1078,8 +1088,10 @@ public class SpannableHelper {
|
|
|
|
|
public void updateDrawState(@NonNull TextPaint ds) {
|
|
|
|
|
super.updateDrawState(ds);
|
|
|
|
|
ds.setUnderlineText(false);
|
|
|
|
|
if (linkColor != -1) {
|
|
|
|
|
ds.setColor(linkColor);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
startPosition, endPosition,
|
|
|
|
|
Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
|
|
|
|