Fixed showing data uri images with a size

pull/199/head
M66B 3 years ago
parent 22ec31c2b0
commit 9fdaae3a65

@ -315,8 +315,8 @@ class ImageHelper {
if (data && (show || inline || a.tracking))
try {
int scaleToPixels = res.getDisplayMetrics().widthPixels;
ByteArrayInputStream bis = getDataUriStream(source);
Bitmap bm = getScaledBitmap(bis, source, scaleToPixels);
ByteArrayInputStream bis = getDataUriStream(a.source);
Bitmap bm = getScaledBitmap(bis, a.source, scaleToPixels);
if (bm == null)
throw new IllegalArgumentException("decode byte array failed");

Loading…
Cancel
Save