mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Improved downloaded image resolution
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user