Update AmbientLightManager.java

fix 设置错误参数,将明亮的值设置成黑暗的值
This commit is contained in:
richard_zheng
2021-04-23 19:33:43 +08:00
committed by GitHub
parent c03872aef5
commit 34b015071e

View File

@@ -104,7 +104,7 @@ public class AmbientLightManager implements SensorEventListener {
* @param lightLux * @param lightLux
*/ */
public void setBrightLightLux(float lightLux){ public void setBrightLightLux(float lightLux){
this.darkLightLux = lightLux; this.brightLightLux = lightLux;
} }
@Override @Override
@@ -148,4 +148,4 @@ public class AmbientLightManager implements SensorEventListener {
*/ */
void onSensorChanged(boolean dark,float lightLux); void onSensorChanged(boolean dark,float lightLux);
} }
} }