summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2016-03-18 09:08:28 -0700
committerRoman Birg <roman@cyngn.com>2016-03-21 09:59:26 -0700
commit53ece467584f2d79cfca3767ba20ce501b2393d2 (patch)
tree16b440546ec61f9e429cdd1dcc6ca6f8e30faebd /packages/SystemUI/res
parent9d474093528d5eeec6beed1eb330fa6b0648221d (diff)
downloadframeworks_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.xml2
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] -->