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

Commit fd8c24a0 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Merge remote-tracking branch 'origin/lineage-19.1' into v1-s

parents 45880f2b 3792f09d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -42,4 +42,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>
+10 −7
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@ import com.android.internal.logging.UiEvent;
import com.android.internal.logging.UiEventLogger;
import com.android.internal.logging.UiEventLoggerImpl;
import com.android.keyguard.KeyguardUpdateMonitor;
import com.android.systemui.R;
import com.android.systemui.biometrics.AuthController;
import com.android.systemui.plugins.SensorManagerPlugin;
import com.android.systemui.statusbar.phone.DozeParameters;
@@ -262,6 +263,7 @@ public class DozeSensors {
                        false /* ignoresSetting */,
                        false /* requiresProx */),
        };
        if (context.getResources().getBoolean(R.bool.doze_proximity_sensor_supported)) {
            setProxListening(false);  // Don't immediately start listening when we register.
            mProximitySensor.register(
                    proximityEvent -> {
@@ -269,6 +271,7 @@ public class DozeSensors {
                            mProxCallback.accept(!proximityEvent.getBelow());
                        }
                    });
        }

        mDevicePostureController.addCallback(mDevicePostureCallback);
    }