Skip to content
Commit 4387bd52 authored by Salvador Martinez's avatar Salvador Martinez
Browse files

Refactor battery warning code to make it easier to read

Currently the logic for the hybrid warning and the legacy warning
is all mixed together and it makes it hard to understand what is
going on. This CL seperates that logic and also adds a immutable
data type to be used when evaluating whether a warning should be
shown rather than checking global variables.

Test: sysUI tests pass
Bug: 126149098
Change-Id: I3a781a4361b0d6a7e8a09e454fcf89a99c3fa175
parent 6ce9003e
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