diff options
author | Marcin Zelent <zelent.marcin@gmail.com> | 2018-03-29 15:58:03 +0200 |
---|---|---|
committer | Marcin Zelent <zelent.marcin@gmail.com> | 2018-03-29 15:58:03 +0200 |
commit | 14e6b8b0171601c7392d13c4c79e38c2e55df928 (patch) | |
tree | 837d4fbe59f9723ffcd9deccaaec60d3bbdd4725 /app/src/main/res/xml/pref_notification.xml | |
parent | ffd565bf02a180a249f361b29395f716c0ac2b40 (diff) |
Added fragments
Diffstat (limited to 'app/src/main/res/xml/pref_notification.xml')
-rw-r--r-- | app/src/main/res/xml/pref_notification.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/src/main/res/xml/pref_notification.xml b/app/src/main/res/xml/pref_notification.xml new file mode 100644 index 0000000..e5a319e --- /dev/null +++ b/app/src/main/res/xml/pref_notification.xml @@ -0,0 +1,27 @@ +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> + + <!-- A 'parent' preference, which enables/disables child preferences (below) + when checked/unchecked. --> + <SwitchPreference + android:defaultValue="true" + android:key="notifications_new_message" + android:title="@string/pref_title_new_message_notifications" /> + + <!-- 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:defaultValue="content://settings/system/notification_sound" + android:dependency="notifications_new_message" + android:key="notifications_new_message_ringtone" + android:ringtoneType="notification" + android:title="@string/pref_title_ringtone" /> + + <!-- NOTE: This preference will be enabled only when the checkbox above is checked. --> + <SwitchPreference + android:defaultValue="true" + android:dependency="notifications_new_message" + android:key="notifications_new_message_vibrate" + android:title="@string/pref_title_vibrate" /> + +</PreferenceScreen> |