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

Commit f354c67b authored by Dave Mankoff's avatar Dave Mankoff
Browse files

Prevent NPE in ProximitySensor.

There was a pseudo-race in ProximitySensor where, if a listener
tried to cancel its proximity sensor, the sensor would then add
a delayed runnable _after_ being canceled, causing it to NPE the
next time it ran. This only occured on phones using a dual-sensor
approach to proximity. It happened particularly regularly with the
ProxCheck utility class.

Fixes: 155183913
Test: atest SystemUITests && manual.
Change-Id: Id399c6d577e3c43f91a3d3a2e3b49fd4fa1918e4
parent 06de1911
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment