Added open tracking link when showing images

Always requires confirmation
This commit is contained in:
M66B
2024-05-23 12:37:42 +02:00
parent 50f16d93ac
commit 344669cc1c
2 changed files with 10 additions and 6 deletions

View File

@@ -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;
}
}