Improved downloaded image resolution

This commit is contained in:
M66B 2020-09-03 17:21:04 +02:00
parent 6cce237c4c
commit 852e1bb6f7
1 changed files with 4 additions and 1 deletions

View File

@ -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();