Fixed logging

pull/212/head
M66B 2 years ago
parent 5674fec271
commit 60981dc95e

@ -1396,7 +1396,6 @@ public class HtmlHelper {
// Remove spacer, etc // Remove spacer, etc
if (!show_images && !(inline_images && isInline) && if (!show_images && !(inline_images && isInline) &&
TextUtils.isEmpty(img.attr("x-tracking"))) { TextUtils.isEmpty(img.attr("x-tracking"))) {
Log.i("Removing small image");
Integer width = Helper.parseInt(img.attr("width").trim()); Integer width = Helper.parseInt(img.attr("width").trim());
Integer height = Helper.parseInt(img.attr("height").trim()); Integer height = Helper.parseInt(img.attr("height").trim());
if (width != null && height != null) { if (width != null && height != null) {
@ -1407,6 +1406,7 @@ public class HtmlHelper {
} }
if ((width != null && width <= SMALL_IMAGE_SIZE) || if ((width != null && width <= SMALL_IMAGE_SIZE) ||
(height != null && height <= SMALL_IMAGE_SIZE)) { (height != null && height <= SMALL_IMAGE_SIZE)) {
Log.i("Removing small image src=" + src);
img.remove(); img.remove();
continue; continue;
} }

Loading…
Cancel
Save