mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Revert "Experiment: mark clicked links"
This reverts commit ab224f1103.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user