Loading packages/SystemUI/res/values/lineage_config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -27,4 +27,7 @@ <!-- Doze: does the long press sensor need a proximity check? --> <bool name="doze_long_press_proximity_check">false</bool> <!-- Whether usage of the proximity sensor during doze is supported --> <bool name="doze_proximity_sensor_supported">true</bool> </resources> packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java +9 −7 Original line number Diff line number Diff line Loading @@ -268,6 +268,7 @@ public class DozeSensors { false /* requiresProx */, true /* immediatelyReRegister */), }; if (resources.getBoolean(com.android.systemui.R.bool.doze_proximity_sensor_supported)) { setProxListening(false); // Don't immediately start listening when we register. mProximitySensor.register( proximityEvent -> { Loading @@ -275,6 +276,7 @@ public class DozeSensors { mProxCallback.accept(!proximityEvent.getBelow()); } }); } mDevicePostureController.addCallback(mDevicePostureCallback); } Loading Loading
packages/SystemUI/res/values/lineage_config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -27,4 +27,7 @@ <!-- Doze: does the long press sensor need a proximity check? --> <bool name="doze_long_press_proximity_check">false</bool> <!-- Whether usage of the proximity sensor during doze is supported --> <bool name="doze_proximity_sensor_supported">true</bool> </resources>
packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java +9 −7 Original line number Diff line number Diff line Loading @@ -268,6 +268,7 @@ public class DozeSensors { false /* requiresProx */, true /* immediatelyReRegister */), }; if (resources.getBoolean(com.android.systemui.R.bool.doze_proximity_sensor_supported)) { setProxListening(false); // Don't immediately start listening when we register. mProximitySensor.register( proximityEvent -> { Loading @@ -275,6 +276,7 @@ public class DozeSensors { mProxCallback.accept(!proximityEvent.getBelow()); } }); } mDevicePostureController.addCallback(mDevicePostureCallback); } Loading