2014-11-04 14:19:48 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
2015-05-17 12:13:34 +00:00
|
|
|
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
|
|
|
android:key="pref_key_enable_notifications"
|
2014-11-04 14:19:48 +00:00
|
|
|
android:title="@string/preferences__notifications"
|
2015-08-02 17:04:49 +00:00
|
|
|
android:summary="@string/preferences__enable_message_notifications"
|
2014-11-04 14:19:48 +00:00
|
|
|
android:defaultValue="true" />
|
|
|
|
|
2014-12-12 03:36:46 +00:00
|
|
|
<RingtonePreference android:dependency="pref_key_enable_notifications"
|
|
|
|
android:key="pref_key_ringtone"
|
|
|
|
android:title="@string/preferences__sound"
|
|
|
|
android:summary="@string/preferences__change_notification_sound"
|
|
|
|
android:ringtoneType="notification"
|
|
|
|
android:defaultValue="content://settings/system/notification_sound" />
|
|
|
|
|
|
|
|
<CheckBoxPreference android:dependency="pref_key_enable_notifications"
|
|
|
|
android:key="pref_key_vibrate"
|
|
|
|
android:defaultValue="true"
|
|
|
|
android:title="@string/preferences__vibrate"
|
|
|
|
android:summary="@string/preferences__also_vibrate_when_notified" />
|
|
|
|
|
2014-11-04 14:19:48 +00:00
|
|
|
<ListPreference
|
|
|
|
android:key="pref_led_color"
|
2015-05-07 06:20:04 +00:00
|
|
|
android:defaultValue="blue"
|
2014-11-04 14:19:48 +00:00
|
|
|
android:title="@string/preferences__led_color"
|
|
|
|
android:dependency="pref_key_enable_notifications"
|
|
|
|
android:entries="@array/pref_led_color_entries"
|
|
|
|
android:entryValues="@array/pref_led_color_values" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.preferences.LedBlinkPatternListPreference
|
|
|
|
android:key="pref_led_blink"
|
|
|
|
android:defaultValue="500,2000"
|
|
|
|
android:title="@string/preferences__pref_led_blink_title"
|
|
|
|
android:dependency="pref_key_enable_notifications"
|
|
|
|
android:entries="@array/pref_led_blink_pattern_entries"
|
|
|
|
android:entryValues="@array/pref_led_blink_pattern_values" />
|
|
|
|
|
|
|
|
<CheckBoxPreference android:key="pref_key_inthread_notifications"
|
2015-11-28 16:02:10 +00:00
|
|
|
android:title="@string/preferences__in_conversation_notifications"
|
2014-11-04 14:19:48 +00:00
|
|
|
android:summary="@string/preferences__play_inthread_notifications"
|
|
|
|
android:dependency="pref_key_enable_notifications"
|
|
|
|
android:defaultValue="true" />
|
|
|
|
|
2014-12-12 03:36:46 +00:00
|
|
|
<ListPreference
|
2015-07-31 22:05:24 +00:00
|
|
|
android:key="pref_repeat_alerts"
|
|
|
|
android:defaultValue="0"
|
|
|
|
android:title="@string/preferences__repeat_alerts"
|
|
|
|
android:dependency="pref_key_enable_notifications"
|
|
|
|
android:entries="@array/pref_repeat_alerts_entries"
|
|
|
|
android:entryValues="@array/pref_repeat_alerts_values" />
|
|
|
|
|
|
|
|
<ListPreference android:key="pref_notification_privacy"
|
|
|
|
android:title="@string/preferences_notifications__display_in_notifications"
|
2015-08-26 18:42:05 +00:00
|
|
|
android:dependency="pref_key_enable_notifications"
|
2015-07-31 22:05:24 +00:00
|
|
|
android:defaultValue="all"
|
|
|
|
android:entries="@array/pref_notification_privacy_entries"
|
|
|
|
android:entryValues="@array/pref_notification_privacy_values"/>
|
|
|
|
|
2014-11-04 14:19:48 +00:00
|
|
|
</PreferenceScreen>
|