mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Prevent viewing tracking icon
This commit is contained in:
@@ -4507,9 +4507,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
|
||||
ImageSpan[] image = buffer.getSpans(off, off, ImageSpan.class);
|
||||
if (image.length > 0) {
|
||||
String source = image[0].getSource();
|
||||
ImageHelper.AnnotatedSource a = new ImageHelper.AnnotatedSource(image[0].getSource());
|
||||
String source = a.getSource();
|
||||
if (!TextUtils.isEmpty(source)) {
|
||||
onOpenImage(message.id, source);
|
||||
if (!a.isTracking())
|
||||
onOpenImage(message.id, source);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -881,6 +881,10 @@ class ImageHelper {
|
||||
return this.source;
|
||||
}
|
||||
|
||||
public boolean isTracking() {
|
||||
return this.tracking;
|
||||
}
|
||||
|
||||
String getAnnotated() {
|
||||
return (width == 0 && height == 0
|
||||
? source
|
||||
|
||||
Reference in New Issue
Block a user