OSDN Git Service

Update BS warning to follow through on action
authorSalvador Martinez <dehboxturtle@google.com>
Fri, 5 Apr 2019 20:09:18 +0000 (13:09 -0700)
committerSalvador Martinez <dehboxturtle@google.com>
Mon, 8 Apr 2019 22:11:13 +0000 (15:11 -0700)
commitdf3a55321b899038b61eb464de49c600317b6dc8
tree030bb1ae20d37950912667cf141be8dce996ec2a
parent623b90d65e633c6797a83dbe8c849c3c73de182b
Update BS warning to follow through on action

The BS warning only had support for following through when a user
wanted to toggle battery saver. Refactors it slightly to be more
flexible in what it can do and also adds support for following
through when a user got here due to routine mode being modified.

Test: robotests pass, manual verification
Bug: 129696128
Change-Id: I1e18d37d069e265397e7f6fac2039a4ea748962b
packages/SettingsLib/src/com/android/settingslib/fuelgauge/BatterySaverUtils.java
packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java