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

Commit d84e8a62 authored by brycelee's avatar brycelee
Browse files

Move doze and idle check to outside condition.

The allOf construct does not short circuit and therefore cannot be
relied upon to prevent other flows from executing. This changelist
moves the low light check for idling and not dozing to the outer
condition to prevent the light sensor from being active when it
shouldn't.

Test: atest LowLightBehaviorCoreStartableTest#testDoNotSubscribeIfDozeForLowLightBehaviorPluggedIn
Bug: 427876000
Flag: EXEMPT bugfix
Change-Id: I7362061cd14a2efa0227710ede27aecd59f86c79
parent 325d92db
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