mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 22:21:18 +00:00
Fixed showing data uri images with a size
This commit is contained in:
parent
22ec31c2b0
commit
9fdaae3a65
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue