Merge "brightness: fix conditions for using doze brightness" into main