mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
3523952ef9
1. Replace custom ringtone picker with system Intent, since we don't need it anymore. Fixes #7174 2. Make sure 'silent' ringtone selection is stored appropriately Fixes #7115 Closes #7141 3. Replace any existing file:// notification URIs with the system default Fixes #7234
81 lines
4.2 KiB
XML
81 lines
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<PreferenceCategory android:title="@string/preferences_notifications__messages">
|
|
|
|
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
|
android:key="pref_key_enable_notifications"
|
|
android:title="@string/preferences__notifications"
|
|
android:defaultValue="true" />
|
|
|
|
<org.thoughtcrime.securesms.preferences.widgets.SignalPreference
|
|
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" />
|
|
|
|
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
|
android:dependency="pref_key_enable_notifications"
|
|
android:key="pref_key_vibrate"
|
|
android:defaultValue="true"
|
|
android:title="@string/preferences__vibrate"/>
|
|
|
|
<org.thoughtcrime.securesms.preferences.widgets.LEDColorListPreference
|
|
android:key="pref_led_color"
|
|
android:defaultValue="blue"
|
|
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.widgets.SignalListPreference
|
|
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
|
|
android:key="pref_key_inthread_notifications"
|
|
android:title="@string/preferences_notifications__in_chat_sounds"
|
|
android:dependency="pref_key_enable_notifications"
|
|
android:defaultValue="true" />
|
|
|
|
<org.thoughtcrime.securesms.preferences.widgets.SignalListPreference
|
|
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" />
|
|
|
|
<org.thoughtcrime.securesms.preferences.widgets.SignalListPreference
|
|
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"/>
|
|
|
|
<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"/>
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory android:layout="@layout/preference_divider"/>
|
|
|
|
<PreferenceCategory android:title="@string/preferences_notifications__events">
|
|
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
|
android:key="pref_enable_new_contacts_notifications"
|
|
android:title="@string/preferences_events__contact_joined_signal"
|
|
android:defaultValue="true" />
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen> |