From 8cc93b521b317ba98b8fd21e5984eb28dfe01503 Mon Sep 17 00:00:00 2001 From: srowen Date: Thu, 10 May 2012 10:40:55 +0000 Subject: [PATCH] Back-port rewritten auto-focus cycle; allow disabling of auto focus git-svn-id: https://zxing.googlecode.com/svn/trunk@2285 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- android/res/values-ar/strings.xml | 3 +- android/res/values-bg/strings.xml | 3 +- android/res/values-ca/strings.xml | 3 +- android/res/values-cs/strings.xml | 3 +- android/res/values-da/strings.xml | 3 +- android/res/values-de/strings.xml | 3 +- android/res/values-el/strings.xml | 3 +- android/res/values-es/strings.xml | 3 +- android/res/values-eu/strings.xml | 3 +- android/res/values-fi/strings.xml | 9 +- android/res/values-fr/strings.xml | 3 +- android/res/values-he/strings.xml | 3 +- android/res/values-hi/strings.xml | 3 +- android/res/values-hu/strings.xml | 3 +- android/res/values-id/strings.xml | 3 +- android/res/values-it/strings.xml | 3 +- android/res/values-iw/strings.xml | 3 +- android/res/values-ja/strings.xml | 3 +- android/res/values-ko/strings.xml | 3 +- android/res/values-nl/strings.xml | 3 +- android/res/values-pl/strings.xml | 3 +- android/res/values-pt/strings.xml | 3 +- android/res/values-ru/strings.xml | 3 +- android/res/values-sk/strings.xml | 3 +- android/res/values-sl/strings.xml | 3 +- android/res/values-sv/strings.xml | 3 +- android/res/values-tr/strings.xml | 3 +- android/res/values-zh-rCN/strings.xml | 3 +- android/res/values-zh-rTW/strings.xml | 3 +- android/res/values/ids.xml | 2 - android/res/values/strings.xml | 1 + android/res/xml/preferences.xml | 4 + .../android/CaptureActivityHandler.java | 9 -- .../client/android/PreferencesActivity.java | 1 + .../android/camera/AutoFocusCallback.java | 52 ----------- .../android/camera/AutoFocusManager.java | 91 +++++++++++++++++++ .../camera/CameraConfigurationManager.java | 14 ++- .../client/android/camera/CameraManager.java | 30 ++---- 38 files changed, 178 insertions(+), 119 deletions(-) delete mode 100644 android/src/com/google/zxing/client/android/camera/AutoFocusCallback.java create mode 100644 android/src/com/google/zxing/client/android/camera/AutoFocusManager.java diff --git a/android/res/values-ar/strings.xml b/android/res/values-ar/strings.xml index fe5ff8838..a610fc727 100644 --- a/android/res/values-ar/strings.xml +++ b/android/res/values-ar/strings.xml @@ -1,6 +1,6 @@ - - diff --git a/android/res/values/strings.xml b/android/res/values/strings.xml index f7b9ad63f..b35e092dd 100755 --- a/android/res/values/strings.xml +++ b/android/res/values/strings.xml @@ -94,6 +94,7 @@ Are you sure? Sorry, the SD card is not accessible. When a barcode is found\u2026 + Use auto focus Scan and save many barcodes continuously Bulk scan mode Copy to clipboard diff --git a/android/res/xml/preferences.xml b/android/res/xml/preferences.xml index 265744648..b4c34f21c 100755 --- a/android/res/xml/preferences.xml +++ b/android/res/xml/preferences.xml @@ -65,6 +65,10 @@ android:defaultValue="false" android:title="@string/preferences_front_light_title" android:summary="@string/preferences_front_light_summary"/> +