Volume key music control [2/2]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
rascarlo
2015-12-01 19:18:53 +01:00
committed by Hưng Phan
parent 6c2b47823b
commit 726a8edddc
2 changed files with 12 additions and 1 deletions

View File

@@ -158,4 +158,7 @@
<!--Volume keys -->
<string name="volume_rocker_wake_summary">Pressing the volume keys will wake your device</string>
<string name="volume_rocker_music_controls_title">Music control</string>
<string name="volume_rocker_music_controls_summary">Long press volume buttons to switch tracks while screen off</string>
</resources>

View File

@@ -21,12 +21,20 @@
<PreferenceCategory
android:key="volume_category"
android:title="@string/volume_category">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="volume_button_music_control"
android:summary="@string/volume_rocker_music_controls_summary"
android:title="@string/volume_rocker_music_controls_title"
android:defaultValue="false"
android:dependency="volume_rocker_wake" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="volume_rocker_wake"
android:summary="@string/volume_rocker_wake_summary"
android:title="@string/volume_rocker_wake_title"
android:defaultValue="false" />
android:defaultValue="false"
android:disableDependentsState="true" />
</PreferenceCategory>