Revert "Experiment: mark clicked links"

This reverts commit ab224f1103.
This commit is contained in:
M66B 2020-11-11 17:12:42 +01:00
parent 13bbe4b3a8
commit 53e5753165
2 changed files with 2 additions and 9 deletions

2
FAQ.md
View File

@ -2811,7 +2811,7 @@ Reformatting and displaying such messages will take too long. You can try to use
<a name="faq125"></a>
**(125) What are the current experimental features?**
* Mark clicked links by changing the link color
* ...
<br />

View File

@ -4117,15 +4117,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (url.equals(title))
title = null;
if (onOpenLink(uri, title)) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(widget.getContext());
boolean experiments = prefs.getBoolean("experiments", false);
if (experiments) {
int colorPrimary = Helper.resolveColor(widget.getContext(), android.R.attr.textColorPrimary);
buffer.setSpan(new ForegroundColorSpan(colorPrimary), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
}
if (onOpenLink(uri, title))
return true;
}
}
ImageSpan[] image = buffer.getSpans(off, off, ImageSpan.class);