mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-05 12:24:26 +01:00
Fixed showing data uri images with a size
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user