Don't use inMutable, which is only in API 11+

git-svn-id: https://zxing.googlecode.com/svn/trunk@2565 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2013-01-22 08:47:40 +00:00
parent 0983aec832
commit cf69a3f6db

View file

@ -88,9 +88,9 @@ public final class CaptureActivityHandler extends Handler {
if (bundle != null) {
byte[] compressedBitmap = bundle.getByteArray(DecodeThread.BARCODE_BITMAP);
if (compressedBitmap != null) {
BitmapFactory.Options options = new BitmapFactory.Options();
options.inMutable = true;
barcode = BitmapFactory.decodeByteArray(compressedBitmap, 0, compressedBitmap.length, options);
barcode = BitmapFactory.decodeByteArray(compressedBitmap, 0, compressedBitmap.length, null);
// Mutable copy:
barcode = barcode.copy(Bitmap.Config.ARGB_8888, true);
}
scaleFactor = bundle.getFloat(DecodeThread.BARCODE_SCALED_FACTOR);
}