Improved downloaded image resolution

pull/184/head
M66B 4 years ago
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…
Cancel
Save