Skip to content
Commit 44e62808 authored by Kweku Adams's avatar Kweku Adams
Browse files

Fix BatterySaverPolicy night mode flag parsing.

BatterySaverPolicy incorrectly negated the enable_night_mode flag,
so when the flag was set to true, night mode was disabled, and vice
versa. This didn't affect the default value, just when the key was
set via string constants.

Bug: 127356043
Test: atest com.android.server.power.batterysaver.BatterySaverPolicyTest
Change-Id: I45d0fc30ea0348eefc706cf67c8820d0cbb5f3a1
parent 24ed9e4f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment