commit | 4387bd529747d9f4c5c0d74aad70878ede82521d | [log] [tgz] |
---|---|---|
author | Salvador Martinez <dehboxturtle@google.com> | Thu Feb 21 16:16:28 2019 -0800 |
committer | Salvador Martinez <dehboxturtle@google.com> | Mon Mar 04 17:10:18 2019 -0800 |
tree | 6d49f78b9931f451bbae5072c77124110baa7d24 | |
parent | 6ce9003ef0c28c3ea9de43550dfa36e3d067c1d5 [diff] |
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