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

Commit 58715f8c authored by Darrell Shi's avatar Darrell Shi
Browse files

Handle light sensor NullPointerException.

Light sensor is not available on all devices so add a check for
availability before starting the ambient light mode monitor.

Test: atest AmbientLightModeMonitorTest#shouldNotRegisterForSensorUpdatesIfSensorNotAvailable
Bug: 203691187
Fix: 203691187
Change-Id: I1f77f1337f24409986029bf018b6e6f43857db87
parent f16c37ac
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