OSDN Git Service

[3/3] Settings: Add CMParts charging sound settings preference
authorSam Mortimer <sam@mortimer.me.uk>
Tue, 8 Nov 2016 07:38:08 +0000 (23:38 -0800)
committerZhao Wei Liew <zhaoweiliew@gmail.com>
Sun, 22 Jan 2017 01:44:29 +0000 (09:44 +0800)
Replace the existing AOSP setting with this.

Change-Id: I13894a86bcfad8d1dfaedc2dcbca6ad70f651b5c

res/xml/other_sound_settings.xml

index d63c321..a0b053e 100644 (file)
@@ -15,6 +15,7 @@
 -->
 
 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+        xmlns:lineage="http://schemas.android.com/apk/res/cyanogenmod.platform"
         android:title="@string/other_sound_settings"
         android:key="other_sound_settings"
         xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
             android:key="charging_sounds"
             android:title="@string/charging_sounds_title" />
 
+    <!-- Custom charging sounds -->
+    <org.cyanogenmod.internal.cmparts.CMPartsPreference
+            android:key="charging_sounds_settings"
+            lineage:replacesKey="charging_sounds" />
+
     <!-- Docking sounds -->
     <SwitchPreference
             android:key="docking_sounds"