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:
srowen 2012-05-10 12:36:52 +00:00
parent 420ec722fb
commit 9fa7d9aba4

View file

@ -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: