summaryrefslogtreecommitdiffstats
path: root/res/xml
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/xml
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/xml')
-rw-r--r--res/xml/sound_settings.xml22
1 files changed, 22 insertions, 0 deletions
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>