From b3c9b504c359df3361a6d863011355f80640e097 Mon Sep 17 00:00:00 2001 From: AndyScherzinger Date: Fri, 30 Jun 2017 15:58:47 +0200 Subject: [PATCH] SDK is always >= 14 --- src/main/java/com/owncloud/android/utils/BitmapUtils.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/owncloud/android/utils/BitmapUtils.java b/src/main/java/com/owncloud/android/utils/BitmapUtils.java index 2954259e11..7726cac399 100644 --- a/src/main/java/com/owncloud/android/utils/BitmapUtils.java +++ b/src/main/java/com/owncloud/android/utils/BitmapUtils.java @@ -56,12 +56,8 @@ public class BitmapUtils { final Options options = new Options(); options.inScaled = true; options.inPurgeable = true; - if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.GINGERBREAD_MR1) { - options.inPreferQualityOverSpeed = false; - } - if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) { - options.inMutable = false; - } + options.inPreferQualityOverSpeed = false; + options.inMutable = false; // make a false load of the bitmap to get its dimensions options.inJustDecodeBounds = true;