mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
The final compatibility changes for Barcode Scanner 3.0, which is now finished.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1084 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
989d3387f6
commit
bb763ea960
|
@ -20,8 +20,8 @@ version to be published. The next versionCode will be 7, regardless of whether t
|
|||
versionName is 2.31, 2.4, or 3.0. -->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.google.zxing.client.android"
|
||||
android:versionName="3.0 beta3"
|
||||
android:versionCode="37">
|
||||
android:versionName="3.0"
|
||||
android:versionCode="38">
|
||||
<!-- We require Cupcake (Android 1.5) or later. -->
|
||||
<uses-sdk android:minSdkVersion="3"/>
|
||||
<!-- Donut-specific flags which allow us to run on large and high dpi screens. -->
|
||||
|
|
|
@ -124,8 +124,8 @@ final class CameraManager {
|
|||
// Camera.setOneShotPreviewCallback() has a race condition in Cupcake, so we use the older
|
||||
// Camera.setPreviewCallback() on 1.5 and earlier. For Donut and later, we need to use
|
||||
// the more efficient one shot callback, as the older one can swamp the system and cause it
|
||||
// to run out of memory.
|
||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.CUPCAKE) {
|
||||
// to run out of memory. We can't use SDK_INT because it was introduced in the Donut SDK.
|
||||
if (Integer.parseInt(Build.VERSION.SDK) <= Build.VERSION_CODES.CUPCAKE) {
|
||||
useOneShotPreviewCallback = false;
|
||||
} else {
|
||||
useOneShotPreviewCallback = true;
|
||||
|
|
Loading…
Reference in a new issue