Browse Source

SDK is always >= 14

AndyScherzinger 7 years ago
parent
commit
b3c9b504c3
1 changed files with 2 additions and 6 deletions
  1. 2 6
      src/main/java/com/owncloud/android/utils/BitmapUtils.java

+ 2 - 6
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;