mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
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:
parent
6698e919e9
commit
126f33815e
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue