mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 21:59:47 +03:00
SDK is always >= 14
This commit is contained in:
parent
018c136e4b
commit
b3c9b504c3
1 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue