summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res/xml
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2015-05-29 10:48:22 -0400
committerJohn Spurlock <jspurlock@google.com>2015-05-29 10:52:29 -0400
commitf40d08f8a3094ac5d5478efc5de0b96f57d2c5df (patch)
tree44d6a12ca98e54e33a58426fdda1eaa7ad9933cc /packages/SystemUI/res/xml
parent995a749f278b45a2931b2846a60a8231dfd755b4 (diff)
downloadframeworks_base-f40d08f8a3094ac5d5478efc5de0b96f57d2c5df.zip
frameworks_base-f40d08f8a3094ac5d5478efc5de0b96f57d2c5df.tar.gz
frameworks_base-f40d08f8a3094ac5d5478efc5de0b96f57d2c5df.tar.bz2
Tuner: add battery pct preference.
And fix questionable code organization choices in BatteryMeterView. Change-Id: I7c13197892b33aa0df9af51fbabb81e0ad0e00e1
Diffstat (limited to 'packages/SystemUI/res/xml')
-rw-r--r--packages/SystemUI/res/xml/tuner_prefs.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/SystemUI/res/xml/tuner_prefs.xml b/packages/SystemUI/res/xml/tuner_prefs.xml
index deb3f4f..135cc82 100644
--- a/packages/SystemUI/res/xml/tuner_prefs.xml
+++ b/packages/SystemUI/res/xml/tuner_prefs.xml
@@ -17,10 +17,14 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/system_ui_tuner">
- <!-- Tuner prefs go here -->
-
<Preference
android:key="qs_tuner"
android:title="@string/quick_settings" />
+ <SwitchPreference
+ android:key="battery_pct"
+ android:title="@string/show_battery_percentage"
+ android:summary="@string/show_battery_percentage_summary"
+ android:persistent="false" />
+
</PreferenceScreen>