Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88c201e5 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Merge remote-tracking branch 'origin/lineage-20.0' into v1-t

parents 73d16ddc d35e44d4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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>
+9 −7
Original line number Diff line number Diff line
@@ -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 -> {
@@ -275,6 +276,7 @@ public class DozeSensors {
                            mProxCallback.accept(!proximityEvent.getBelow());
                        }
                    });
        }

        mDevicePostureController.addCallback(mDevicePostureCallback);
    }