通话时psensor唤醒屏幕慢
时间:10-02
整理:3721RD
点击:
可以尝试下面修改
1.
DisplaypowerController.Java 里 将
msensorManager.registerListener(mProximitySensorListener, mProximitySensor,
SensorManager.SENSOR_DELAY_NORMAL, mHandler); 的第3个参数改成:
SensorManager.SENSOR_DELAY_UI 或者SensorManager.SENSOR_DELAY_GAME (game更快)
2.
将 PROXIMITY_SENSOR_NEGATIVE_DEBOUNCE_DELAY 改的小一点,原来应该500,可以改成200左右。
1.
DisplaypowerController.Java 里 将
msensorManager.registerListener(mProximitySensorListener, mProximitySensor,
SensorManager.SENSOR_DELAY_NORMAL, mHandler); 的第3个参数改成:
SensorManager.SENSOR_DELAY_UI 或者SensorManager.SENSOR_DELAY_GAME (game更快)
2.
将 PROXIMITY_SENSOR_NEGATIVE_DEBOUNCE_DELAY 改的小一点,原来应该500,可以改成200左右。
谢谢分享