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); return getScaledDrawable(file, dm.widthPixels);
} }
bm = getScaledBitmap(urlConnection.getInputStream(), source, dm.widthPixels); bm = getScaledBitmap(
urlConnection.getInputStream(),
source,
Math.max(dm.widthPixels, dm.heightPixels));
} finally { } finally {
if (urlConnection != null) if (urlConnection != null)
urlConnection.disconnect(); urlConnection.disconnect();

Loading…
Cancel
Save