summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorSam Mortimer <sam@mortimer.me.uk>2013-03-18 16:13:25 -0700
committerSam Mortimer <sam@mortimer.me.uk>2013-04-15 19:37:59 -0700
commitb608d71ea4d0e65d32bf1ce6fd5e34dc37040b51 (patch)
tree17d1dc321730960a6c4401b2311715a61072a937 /res
parent67f59560ec70f1d492994e5b0d5b4d30a5ee5df3 (diff)
downloadpackages_apps_Settings-b608d71ea4d0e65d32bf1ce6fd5e34dc37040b51.tar.gz
packages_apps_Settings-b608d71ea4d0e65d32bf1ce6fd5e34dc37040b51.tar.bz2
packages_apps_Settings-b608d71ea4d0e65d32bf1ce6fd5e34dc37040b51.zip
[2/2] Power connect/disconnect notification support
part 1/2: frameworks/base PowerUI and Settings http://review.cyanogenmod.org/#/c/35241/ part 2/2: packages/apps/Settings Sound settings http://review.cyanogenmod.org/#/c/35242/ patchset 3: set settings persistence and dependencies in xml resource file shrink long lines add the default notification tone to the ringtone picker and remove the now redundant "use default" checkbox move values/strings.xml content to the cyanogenmod section improve (mostly delete) wording in values/strings.xml remove tab whitespace patchset 5: move strings to cm_strings patchset 6: make vibrate optional (default on) change heading text: power notifications -> power sounds patchset 7: hide vibrate option if hw capability doesn't exist patchset 8: change vibrate to default to off Change-Id: I7ddd8a47ae4f9a62c586023d151ac42bbe8424c7
Diffstat (limited to 'res')
-rw-r--r--res/values/cm_strings.xml13
-rw-r--r--res/xml/sound_settings.xml22
2 files changed, 35 insertions, 0 deletions
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
index f37b094b9..2e0254e86 100644
--- a/res/values/cm_strings.xml
+++ b/res/values/cm_strings.xml
@@ -884,4 +884,17 @@
<string name="wifi_ibss_freq_title">Channel / Frequency</string>
<string name="wifi_channel">Channel</string>
<string name="wifi_mhz">MHz</string>
+
+ <!-- Category title for power sound notification specific Settings.
+ [CHAR LIMIT=40] -->
+ <string name="power_notifications_category_title">Power sounds</string>
+
+ <!-- Sound settings, power notifications enable/disable, setting check box label -->
+ <string name="power_notifications_enable_title">Enable</string>
+ <!-- Sound settings, power notifications vibrate enable/disable, setting check box label -->
+ <string name="power_notifications_vibrate_title">Vibrate</string>
+ <!-- Sound settings, power notifications ringtone selection, preference label -->
+ <string name="power_notifications_ringtone_title">Notification sound</string>
+ <!-- Sound settings, power notifications label for ringtone == none -->
+ <string name="power_notifications_ringtone_silent">Silent</string>
</resources>
diff --git a/res/xml/sound_settings.xml b/res/xml/sound_settings.xml
index 58750ee05..af5df869f 100644
--- a/res/xml/sound_settings.xml
+++ b/res/xml/sound_settings.xml
@@ -164,4 +164,26 @@
android:summary="@string/safe_headset_volume_summary"
android:defaultValue="true" />
+ <PreferenceCategory
+ android:title="@string/power_notifications_category_title"/>
+
+ <CheckBoxPreference
+ android:key="power_notifications"
+ android:title="@string/power_notifications_enable_title"
+ android:defaultValue="false"
+ android:persistent="false" />
+
+ <CheckBoxPreference
+ android:key="power_notifications_vibrate"
+ android:title="@string/power_notifications_vibrate_title"
+ android:defaultValue="false"
+ android:dependency="power_notifications"
+ android:persistent="false" />
+
+ <Preference
+ android:key="power_notifications_ringtone"
+ android:title="@string/power_notifications_ringtone_title"
+ android:dependency="power_notifications"
+ android:persistent="false" />
+
</PreferenceScreen>