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