commit | a2df26e9b358086224d587b6da45c59da6098fe2 | [log] [tgz] |
---|---|---|
author | jackqdyulei <jackqdyulei@google.com> | Tue Feb 06 14:03:30 2018 -0800 |
committer | jackqdyulei <jackqdyulei@google.com> | Thu Feb 08 15:22:27 2018 -0800 |
tree | 54015b1a90cb08ca707adc44a86899263d07c00e | |
parent | 92757b2454c3bbc6d54a5b49efad4ebafc9fe01b [diff] |
Use BatterySaverReceiver in battery saver settings Use this receiver to listen to following updates: 1. Plug state: if it is plugged in, disable this two state button, otherwise make it enabled 2. low power mode: If mode on, show "turn off" otherwise show "turn on" Bug: 72228477 Test: RunSettingsRoboTests Change-Id: Ib3d3df9f9a5fbac8b1b876c9e193beb75f522ebd