mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Small improvement
This commit is contained in:
@@ -320,7 +320,7 @@ class ImageHelper {
|
||||
InputStream inputStream = context.getContentResolver().openInputStream(uri);
|
||||
Drawable d = Drawable.createFromStream(inputStream, uri.toString());
|
||||
if (d == null)
|
||||
throw new IllegalArgumentException("createFromStream");
|
||||
throw new FileNotFoundException(a.source);
|
||||
d.setBounds(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight());
|
||||
if (view != null)
|
||||
fitDrawable(d, a, view);
|
||||
|
||||
Reference in New Issue
Block a user