Experiment: mark links with link symbol

This commit is contained in:
M66B 2022-06-06 18:56:02 +02:00
parent 2d3bf83cb4
commit 06e84bac7f
1 changed files with 7 additions and 1 deletions

View File

@ -3263,8 +3263,14 @@ public class HtmlHelper {
switch (tag) {
case "a":
String href = element.attr("href");
if (!TextUtils.isEmpty(href))
if (!TextUtils.isEmpty(href)) {
if (BuildConfig.DEBUG) {
Uri uri = UriHelper.guessScheme(Uri.parse(href));
if (UriHelper.isHyperLink(uri))
ssb.append("\uD83D\uDD17"); // 🔗
}
setSpan(ssb, new URLSpan(href), start, ssb.length());
}
break;
case "big":
setSpan(ssb, new RelativeSizeSpan(FONT_LARGE), start, ssb.length());