Skip to content

Commit

Permalink
[doubletap] Do not enable doubletap detection when proximity state is…
Browse files Browse the repository at this point in the history
… unknown

Disabling doubletap detection when sensor is in CLOSED state
leaves the detection enabled when the sensor state is unknown.

Disable detection unless the sensor is in OPEN state.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Mar 15, 2019
1 parent e4f5b1b commit 9e09174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/doubletap.c
Expand Up @@ -175,7 +175,7 @@ static void dbltap_rethink(void)
state = DT_ENABLED;

/* Disable due to proximity sensor. */
if( proximity_sensor_actual == COVER_CLOSED ) {
if( proximity_sensor_actual != COVER_OPEN ) {
/* Note that during in-call proximity blanking we
* want to keep the touch detection powered up but
* not reporting double taps to allow faster touch
Expand Down

0 comments on commit 9e09174

Please sign in to comment.