mirror of
https://github.com/zxing/zxing.git
synced 2025-01-27 11:01:00 -08:00
Let camera use continuous-picture focus mode if available. API-wise it's 100% legal, which means there's only a 50% chance it will break a bunch of ICS devices
git-svn-id: https://zxing.googlecode.com/svn/trunk@2288 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
420ec722fb
commit
9fa7d9aba4
|
@ -92,6 +92,7 @@ final class CameraConfigurationManager {
|
|||
String focusMode = null;
|
||||
if (prefs.getBoolean(PreferencesActivity.KEY_AUTO_FOCUS, true)) {
|
||||
focusMode = findSettableValue(parameters.getSupportedFocusModes(),
|
||||
"continuous-picture", // Camera.Paramters.FOCUS_MODE_CONTINUOUS_PICTURE in 4.0+
|
||||
Camera.Parameters.FOCUS_MODE_AUTO);
|
||||
}
|
||||
// Maybe selected auto-focus but not available, so fall through here:
|
||||
|
|
Loading…
Reference in a new issue