OSDN Git Service

Allow picking ringtones as alarm alerts.
authorPatrick Scott <phanna@android.com>
Thu, 19 Nov 2009 14:13:48 +0000 (09:13 -0500)
committerPatrick Scott <phanna@android.com>
Thu, 19 Nov 2009 14:13:48 +0000 (09:13 -0500)
The original request was for just a few of the ringtones but that really isn't
possible with the current framework. Media files are classified by what folder
they are transferred to during the build. It would be nice to have a way to
specify what media files should be allowed in the list of ringtones but for now,
I think it is ok to allow selecting any of the built-in ringtones.

res/xml/alarm_prefs.xml

index 84b44e2..3619836 100644 (file)
@@ -22,7 +22,7 @@
     <com.android.deskclock.AlarmPreference
         android:key="alarm" 
         android:title="@string/alert"
     <com.android.deskclock.AlarmPreference
         android:key="alarm" 
         android:title="@string/alert"
-        android:ringtoneType="alarm"
+        android:ringtoneType="alarm|ringtone"
         android:persistent="false"
         android:showDefault="false"
         android:showSilent="true" />
         android:persistent="false"
         android:showDefault="false"
         android:showSilent="true" />