mirror of https://github.com/M66B/FairEmail.git
Experiment: mark links with link symbol
This commit is contained in:
parent
2d3bf83cb4
commit
06e84bac7f
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue