From 0611cbeba4c9a27685e06536b645ffaf12182f2c Mon Sep 17 00:00:00 2001 From: blunden Date: Mon, 30 Jul 2012 15:40:31 +0200 Subject: Settings: Add option to always show battery status on lockscreen (2/2) Based on the feature by burnsra in CM7 Authored by blunden Tweaked by dvtonder Screenshot: https://dl.dropbox.com/u/50993944/Screenshot_2012-08-03-08-47-16.png Patchset 1 : Initial commit Patchset 2 : UI redesign Patchset 3 : Patch description text updated Patchset 4 : Fix derp in comments Change-Id: I1c8c8eef3d0c913c621f735e7d5e395c8768fe76 --- res/values/arrays.xml | 10 ++++++++ res/values/strings.xml | 5 ++++ res/xml/lockscreen_interface_settings.xml | 9 +++++++ .../settings/cyanogenmod/LockscreenInterface.java | 30 +++++++++++++++++++++- 4 files changed, 53 insertions(+), 1 deletion(-) diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 11069a8..f93a01a 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -1189,5 +1189,15 @@ 2 + + @string/lockscreen_battery_status_charging + @string/lockscreen_battery_status_alwayson + + + + 0 + 1 + + diff --git a/res/values/strings.xml b/res/values/strings.xml index c3e48bc..46b04c9 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -4512,6 +4512,11 @@ Vibrate Vibrate when unlocking + + Battery status + Only when charging + Always on + Profiles General diff --git a/res/xml/lockscreen_interface_settings.xml b/res/xml/lockscreen_interface_settings.xml index a4f5365..4138020 100644 --- a/res/xml/lockscreen_interface_settings.xml +++ b/res/xml/lockscreen_interface_settings.xml @@ -25,6 +25,15 @@ + +