Browse Source

Fix wrong dimensions calculated due to last minute variable name change

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
d6e927a8be
  1. 2
      app/src/main/java/awais/instagrabber/utils/NumberUtils.java

2
app/src/main/java/awais/instagrabber/utils/NumberUtils.java

@ -59,7 +59,7 @@ public final class NumberUtils {
public static Pair<Integer, Integer> calculateWidthHeight(final int height, final int width, final int maxHeight, final int maxWidth) {
int tempWidth = NumberUtils.getResultingWidth(maxHeight, height, width);
int tempHeight = maxHeight;
if (width > maxWidth) {
if (tempWidth > maxWidth) {
tempHeight = NumberUtils.getResultingHeight(maxWidth, height, width);
tempWidth = maxWidth;
}

Loading…
Cancel
Save