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
Loading
Please register or sign in to comment