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">
|
|
|
|
|
2020-01-09 03:15:43 +00:00
|
|
|
<PreferenceCategory android:title="@string/preferences_notifications__messages">
|
2014-12-12 03:36:46 +00:00
|
|
|
|
2020-01-09 03:15:43 +00:00
|
|
|
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
|
|
|
android:key="pref_key_enable_notifications"
|
|
|
|
android:title="@string/preferences__notifications"
|
|
|
|
android:defaultValue="true" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.preferences.widgets.SignalListPreference
|
|
|
|
android:key="pref_notification_priority"
|
|
|
|
android:title="@string/preferences_notifications__priority"
|
|
|
|
android:dependency="pref_key_enable_notifications"
|
|
|
|
android:defaultValue="1"
|
|
|
|
android:entries="@array/pref_notification_priority_entries"
|
|
|
|
android:entryValues="@array/pref_notification_priority_values" />
|
2019-07-16 07:09:15 +00:00
|
|
|
|
2020-01-09 03:15:43 +00:00
|
|
|
</PreferenceCategory>
|
2019-07-16 07:09:15 +00:00
|
|
|
|
2020-01-09 03:15:43 +00:00
|
|
|
<PreferenceCategory android:layout="@layout/preference_divider" />
|
2019-07-16 07:09:15 +00:00
|
|
|
|
2020-04-16 05:33:31 +00:00
|
|
|
<PreferenceCategory android:title="@string/preferences_notifications_strategy_category_title">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
|
|
|
android:dependency="pref_key_enable_notifications"
|
|
|
|
android:key="pref_key_use_fcm"
|
2021-06-16 06:05:08 +00:00
|
|
|
android:title="@string/preferences_notifications_strategy_category_fast_mode_title"
|
|
|
|
android:summary="@string/preferences_notifications_strategy_category_fast_mode_summary"
|
2020-04-16 05:33:31 +00:00
|
|
|
android:defaultValue="false" />
|
|
|
|
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
|
|
|
<PreferenceCategory android:layout="@layout/preference_divider" />
|
|
|
|
|
2019-07-16 07:09:15 +00:00
|
|
|
<PreferenceCategory android:title="@string/activity_notification_settings_style_section_title">
|
2014-12-12 03:36:46 +00:00
|
|
|
|
2017-12-01 20:55:24 +00:00
|
|
|
<org.thoughtcrime.securesms.preferences.widgets.SignalPreference
|
2020-01-09 03:15:43 +00:00
|
|
|
android:dependency="pref_key_enable_notifications"
|
|
|
|
android:key="pref_key_ringtone"
|
|
|
|
android:title="@string/preferences__sound"
|
|
|
|
android:persistent="false"
|
|
|
|
android:defaultValue="content://settings/system/notification_sound" />
|
2014-11-04 14:19:48 +00:00
|
|
|
|
2017-04-15 03:39:38 +00:00
|
|
|
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
2020-01-09 03:15:43 +00:00
|
|
|
android:dependency="pref_key_enable_notifications"
|
|
|
|
android:key="pref_key_vibrate"
|
|
|
|
android:defaultValue="true"
|
|
|
|
android:title="@string/preferences__vibrate" />
|
2014-11-04 14:19:48 +00:00
|
|
|
|
2017-09-21 17:03:05 +00:00
|
|
|
<org.thoughtcrime.securesms.preferences.widgets.LEDColorListPreference
|
2017-04-15 03:39:38 +00:00
|
|
|
android:key="pref_led_color"
|
|
|
|
android:defaultValue="blue"
|
|
|
|
android:title="@string/preferences__led_color"
|
2015-07-31 22:05:24 +00:00
|
|
|
android:dependency="pref_key_enable_notifications"
|
2017-04-15 03:39:38 +00:00
|
|
|
android:entries="@array/pref_led_color_entries"
|
|
|
|
android:entryValues="@array/pref_led_color_values" />
|
|
|
|
|
2017-09-21 17:03:05 +00:00
|
|
|
<org.thoughtcrime.securesms.preferences.widgets.SignalListPreference
|
2017-04-15 03:39:38 +00:00
|
|
|
android:key="pref_led_blink"
|
|
|
|
android:defaultValue="500,2000"
|
|
|
|
android:title="@string/preferences__pref_led_blink_title"
|
|
|
|
android:dependency="pref_led_color"
|
|
|
|
android:entries="@array/pref_led_blink_pattern_entries"
|
|
|
|
android:entryValues="@array/pref_led_blink_pattern_values" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
2020-01-09 03:15:43 +00:00
|
|
|
android:key="pref_key_inthread_notifications"
|
|
|
|
android:title="@string/preferences_notifications__in_chat_sounds"
|
|
|
|
android:dependency="pref_key_enable_notifications"
|
|
|
|
android:defaultValue="true" />
|
2017-04-15 03:39:38 +00:00
|
|
|
|
2017-09-21 17:03:05 +00:00
|
|
|
<org.thoughtcrime.securesms.preferences.widgets.SignalListPreference
|
2020-01-09 03:15:43 +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" />
|
2017-04-15 03:39:38 +00:00
|
|
|
|
2019-07-16 07:09:15 +00:00
|
|
|
</PreferenceCategory>
|
|
|
|
|
2020-01-09 03:15:43 +00:00
|
|
|
<PreferenceCategory android:layout="@layout/preference_divider" />
|
2019-07-16 07:09:15 +00:00
|
|
|
|
|
|
|
<PreferenceCategory android:title="@string/activity_notification_settings_content_section_title">
|
|
|
|
|
2017-09-21 17:03:05 +00:00
|
|
|
<org.thoughtcrime.securesms.preferences.widgets.SignalListPreference
|
2020-01-09 03:15:43 +00:00
|
|
|
android:key="pref_notification_privacy"
|
|
|
|
android:title="@string/preferences_notifications__show"
|
|
|
|
android:dependency="pref_key_enable_notifications"
|
|
|
|
android:defaultValue="all"
|
|
|
|
android:entries="@array/pref_notification_privacy_entries"
|
|
|
|
android:entryValues="@array/pref_notification_privacy_values" />
|
2017-04-22 06:04:54 +00:00
|
|
|
|
2017-04-15 03:39:38 +00:00
|
|
|
</PreferenceCategory>
|
2015-07-31 22:05:24 +00:00
|
|
|
|
2019-07-16 07:09:15 +00:00
|
|
|
<!-- </PreferenceCategory>
|
|
|
|
|
2017-04-15 03:39:38 +00:00
|
|
|
<PreferenceCategory android:layout="@layout/preference_divider"/>
|
2015-07-31 22:05:24 +00:00
|
|
|
|
2018-02-16 19:10:35 +00:00
|
|
|
<PreferenceCategory android:title="@string/preferences_notifications__calls">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
|
|
|
android:key="pref_call_notifications"
|
|
|
|
android:title="@string/preferences__notifications"
|
|
|
|
android:defaultValue="true" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.preferences.widgets.SignalPreference
|
|
|
|
android:dependency="pref_call_notifications"
|
|
|
|
android:key="pref_call_ringtone"
|
|
|
|
android:title="@string/preferences_notifications__ringtone"
|
|
|
|
android:persistent="false"
|
|
|
|
android:defaultValue="content://settings/system/ringtone" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
|
|
|
android:dependency="pref_call_notifications"
|
|
|
|
android:key="pref_call_vibrate"
|
|
|
|
android:defaultValue="true"
|
|
|
|
android:title="@string/preferences__vibrate"/>
|
|
|
|
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
|
|
|
<PreferenceCategory android:layout="@layout/preference_divider"/>
|
|
|
|
|
2017-04-15 03:39:38 +00:00
|
|
|
<PreferenceCategory android:title="@string/preferences_notifications__events">
|
|
|
|
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
|
|
|
android:key="pref_enable_new_contacts_notifications"
|
2017-04-17 00:04:41 +00:00
|
|
|
android:title="@string/preferences_events__contact_joined_signal"
|
2017-04-15 03:39:38 +00:00
|
|
|
android:defaultValue="true" />
|
2019-07-16 07:09:15 +00:00
|
|
|
</PreferenceCategory> -->
|
2015-12-19 12:07:44 +00:00
|
|
|
|
2014-11-04 14:19:48 +00:00
|
|
|
</PreferenceScreen>
|