Skip to content
Snippets Groups Projects
Commit 9f7860b5 authored by Michael Bestas's avatar Michael Bestas Committed by Dhina17
Browse files

fixup! DozeSensors: only use proximity sensor if supported

Change-Id: I7b11be4b7f4d52281495a8a1c605d7df4f16bf82
parent b472c34c
No related branches found
No related tags found
No related merge requests found
......@@ -286,7 +286,7 @@ public class DozeSensors {
false /* requiresAod */
),
};
if (resources.getBoolean(com.android.systemui.R.bool.doze_proximity_sensor_supported)) {
if (resources.getBoolean(com.android.systemui.res.R.bool.doze_proximity_sensor_supported)) {
setProxListening(false); // Don't immediately start listening when we register.
mProximitySensor.register(
proximityEvent -> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment