summaryrefslogtreecommitdiffstats
path: root/res/xml/other_sound_settings.xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/xml/other_sound_settings.xml')
-rw-r--r--res/xml/other_sound_settings.xml45
1 files changed, 20 insertions, 25 deletions
diff --git a/res/xml/other_sound_settings.xml b/res/xml/other_sound_settings.xml
index 3ba3dfb..ccedbb3 100644
--- a/res/xml/other_sound_settings.xml
+++ b/res/xml/other_sound_settings.xml
@@ -31,12 +31,6 @@
android:title="@string/screen_locking_sounds_title"
android:persistent="false" />
- <!-- Charging sounds -->
- <SwitchPreference
- android:key="charging_sounds"
- android:title="@string/charging_sounds_title"
- android:persistent="false" />
-
<!-- Docking sounds -->
<SwitchPreference
android:key="docking_sounds"
@@ -67,28 +61,29 @@
android:title="@string/emergency_tone_title"
android:persistent="false" />
+ <!-- Charging sounds -->
<PreferenceCategory
android:title="@string/power_notifications_category_title">
- <SwitchPreference
- android:key="power_notifications"
- android:title="@string/power_notifications_enable_title"
- android:summary="@string/power_notifications_enable_summary"
- android:defaultValue="false"
- android:persistent="false" />
-
- <SwitchPreference
- 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" />
+ <SwitchPreference
+ android:key="charging_sounds"
+ android:title="@string/power_notifications_enable_title"
+ android:summary="@string/power_notifications_enable_summary"
+ android:defaultValue="false"
+ android:persistent="false" />
+
+ <SwitchPreference
+ android:key="power_notifications_vibrate"
+ android:title="@string/power_notifications_vibrate_title"
+ android:defaultValue="false"
+ android:dependency="charging_sounds"
+ android:persistent="false" />
+
+ <Preference
+ android:key="power_notifications_ringtone"
+ android:title="@string/power_notifications_ringtone_title"
+ android:dependency="charging_sounds"
+ android:persistent="false" />
</PreferenceCategory>
</PreferenceScreen>