SDK is always >= 14

This commit is contained in:
AndyScherzinger 2017-06-30 15:58:47 +02:00
parent 018c136e4b
commit b3c9b504c3
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

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