mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Added open tracking link when showing images
Always requires confirmation
This commit is contained in:
@@ -30,7 +30,7 @@ import org.jsoup.nodes.Element;
|
||||
public class ImageSpanEx extends ImageSpan {
|
||||
private final int width;
|
||||
private final int height;
|
||||
private final boolean tracking;
|
||||
private final String tracking;
|
||||
|
||||
public ImageSpanEx(@NonNull Drawable drawable, @NonNull Element img) {
|
||||
super(drawable, img.attr("src"));
|
||||
@@ -60,7 +60,7 @@ public class ImageSpanEx extends ImageSpan {
|
||||
|
||||
this.width = _width;
|
||||
this.height = _height;
|
||||
this.tracking = !TextUtils.isEmpty(img.attr("x-tracking"));
|
||||
this.tracking = img.attr("x-tracking");
|
||||
}
|
||||
|
||||
public int getWidth() {
|
||||
@@ -71,7 +71,7 @@ public class ImageSpanEx extends ImageSpan {
|
||||
return this.height;
|
||||
}
|
||||
|
||||
public boolean getTracking() {
|
||||
public String getTracking() {
|
||||
return this.tracking;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user