mirror of https://github.com/M66B/FairEmail.git
Improved downloaded image resolution
This commit is contained in:
parent
6cce237c4c
commit
852e1bb6f7
|
@ -621,7 +621,10 @@ class ImageHelper {
|
|||
return getScaledDrawable(file, dm.widthPixels);
|
||||
}
|
||||
|
||||
bm = getScaledBitmap(urlConnection.getInputStream(), source, dm.widthPixels);
|
||||
bm = getScaledBitmap(
|
||||
urlConnection.getInputStream(),
|
||||
source,
|
||||
Math.max(dm.widthPixels, dm.heightPixels));
|
||||
} finally {
|
||||
if (urlConnection != null)
|
||||
urlConnection.disconnect();
|
||||
|
|
Loading…
Reference in New Issue