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

Commit a4b357c9 authored by Cosmin Tanislav's avatar Cosmin Tanislav Committed by Jan Altensen
Browse files

SystemUI: doze: add config for double tap sensors that need a proximity check

Change-Id: Id7df987f0e9db4e5e2328534764ded397b6ac48d
parent 10005858
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2018-2021 The LineageOS Project
     Copyright (C) 2018-2022 The LineageOS Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
@@ -36,4 +36,7 @@

    <!-- Udfps HBM provider class name -->
    <string name="config_udfpsHbmProviderComponent">com.android.systemui.biometrics.DummyUdfpsHbmProvider</string>

    <!-- Doze: does the double tap sensor need a proximity check? -->
    <bool name="doze_double_tap_proximity_check">false</bool>
</resources>
+2 −1
Original line number Diff line number Diff line
@@ -200,7 +200,8 @@ public class DozeSensors {
                        true /* configured */,
                        DozeLog.REASON_SENSOR_DOUBLE_TAP,
                        dozeParameters.doubleTapReportsTouchCoordinates(),
                        true /* touchscreen */),
                        true /* touchscreen */,
                        !dozeParameters.doubleTapNeedsProximityCheck() /* performsProxCheck */),
                new TriggerSensor(
                        findSensors(config.tapSensorTypeMapping()),
                        Settings.Secure.DOZE_TAP_SCREEN_GESTURE,
+4 −0
Original line number Diff line number Diff line
@@ -298,6 +298,10 @@ public class DozeParameters implements
        return 2 * getPulseVisibleDuration();
    }

    public boolean doubleTapNeedsProximityCheck() {
        return mResources.getBoolean(R.bool.doze_double_tap_proximity_check);
    }

    public boolean doubleTapReportsTouchCoordinates() {
        return mResources.getBoolean(R.bool.doze_double_tap_reports_touch_coordinates);
    }