summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>2013-01-22 12:47:40 +0400
committersrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>2013-01-22 12:47:40 +0400
commit6815e404cd468de43fc0bdba2754a6718e92df6d (patch)
tree6c771d1502ec08733599f2e6d160f569f04eb209
parenta6d63d83b39ad0efdd58794337e82275ee623ca4 (diff)
downloadzxing-android-embedded-6815e404cd468de43fc0bdba2754a6718e92df6d.tar.xz
Don't use inMutable, which is only in API 11+
git-svn-id: http://zxing.googlecode.com/svn/trunk/android@2565 59b500cc-1b3d-0410-9834-0bbf25fbcc57
-rwxr-xr-xsrc/com/google/zxing/client/android/CaptureActivityHandler.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/google/zxing/client/android/CaptureActivityHandler.java b/src/com/google/zxing/client/android/CaptureActivityHandler.java
index d76fe04f..1e6aebcf 100755
--- a/src/com/google/zxing/client/android/CaptureActivityHandler.java
+++ b/src/com/google/zxing/client/android/CaptureActivityHandler.java
@@ -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);
}