diff --git a/src/main/java/com/owncloud/android/utils/BitmapUtils.java b/src/main/java/com/owncloud/android/utils/BitmapUtils.java index 1682a2c96a..b88a1b7d61 100644 --- a/src/main/java/com/owncloud/android/utils/BitmapUtils.java +++ b/src/main/java/com/owncloud/android/utils/BitmapUtils.java @@ -120,8 +120,7 @@ public class BitmapUtils { float scale = px / max; int w = Math.round(scale * width); int h = Math.round(scale * height); - bitmap = Bitmap.createScaledBitmap(bitmap, w, h, true); - return bitmap; + return Bitmap.createScaledBitmap(bitmap, w, h, true); } /**