Make light thresholds less sensitive to avoid rapid on/off on some devices

git-svn-id: https://zxing.googlecode.com/svn/trunk@2538 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2012-11-28 00:14:57 +00:00
parent 6698e919e9
commit 126f33815e

View file

@ -34,8 +34,8 @@ import com.google.zxing.client.android.camera.FrontLightMode;
*/ */
final class AmbientLightManager implements SensorEventListener { final class AmbientLightManager implements SensorEventListener {
private static final float TOO_DARK_LUX = 90.0f; private static final float TOO_DARK_LUX = 45.0f;
private static final float BRIGHT_ENOUGH_LUX = 225.0f; private static final float BRIGHT_ENOUGH_LUX = 450.0f;
private final Context context; private final Context context;
private CameraManager cameraManager; private CameraManager cameraManager;