blob: a999e01424d9be164318fa388e069fd8c468e334 [file] [log] [blame] [raw]
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<!-- A 'parent' preference, which enables/disables child preferences (below) when checked/unchecked. -->
<CheckBoxPreference
android:key="enable_notification"
android:title="@string/pref_title_enable_notification"
android:defaultValue="false" />
<ListPreference
android:dependency="enable_notification"
android:key="notifications_time"
android:title="When"
android:entries="@array/when"
android:entryValues="@array/when"
android:defaultValue="Taken"
/>
<!-- Allows the user to choose a ringtone in the 'notification' category. -->
<!-- NOTE: This preference will be enabled only when the checkbox above is checked. -->
<!-- NOTE: RingtonePreference's summary should be set to its value by the activity code. -->
<RingtonePreference
android:dependency="enable_notification"
android:key="notifications_taken_ringtone"
android:title="@string/pref_title_ringtone"
android:ringtoneType="notification"
android:defaultValue="content://settings/system/notification_sound" />
</PreferenceScreen>