diff options
| author | Roman Birg <roman@cyngn.com> | 2016-03-18 09:08:28 -0700 |
|---|---|---|
| committer | Roman Birg <roman@cyngn.com> | 2016-03-21 09:59:26 -0700 |
| commit | 53ece467584f2d79cfca3767ba20ce501b2393d2 (patch) | |
| tree | 16b440546ec61f9e429cdd1dcc6ca6f8e30faebd /packages/SystemUI/res | |
| parent | 9d474093528d5eeec6beed1eb330fa6b0648221d (diff) | |
| download | frameworks_base-53ece467584f2d79cfca3767ba20ce501b2393d2.zip frameworks_base-53ece467584f2d79cfca3767ba20ce501b2393d2.tar.gz frameworks_base-53ece467584f2d79cfca3767ba20ce501b2393d2.tar.bz2 | |
SystemUI: improve battery saver tile
- Fix the tile not showing, the javadoc states that it will return 0 if
profiles are not supported, but it was actually returning -1.
- Now disables itself when the device is plugged in to reflect to the user
that they cannot toggle it on right now.
- Don't wait for power manager to update its internal state before
updating the visual tile state.
Change-Id: I8ab6adb2bfa728a242368294c1f066d468a86f09
Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'packages/SystemUI/res')
| -rw-r--r-- | packages/SystemUI/res/values/cm_strings.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/SystemUI/res/values/cm_strings.xml b/packages/SystemUI/res/values/cm_strings.xml index 200a236..785e72a 100644 --- a/packages/SystemUI/res/values/cm_strings.xml +++ b/packages/SystemUI/res/values/cm_strings.xml @@ -104,6 +104,8 @@ <string name="quick_settings_profiles_off">Profiles disabled</string> <string name="quick_settings_heads_up_label">Heads up</string> <string name="quick_settings_battery_saver_label">Battery saver</string> + <!-- quick settings battery saver label to show when device is charging and tile is disabled --> + <string name="quick_settings_battery_saver_label_charging">Battery saver (charging)</string> <string name="quick_settings_caffeine_label">Caffeine</string> <!-- Content description of the sync tile in quick settings when off (not shown on the screen). [CHAR LIMIT=NONE] --> |
