mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-11 18:54:21 +00:00
3e890e11d9
Closes #3137
53 lines
2.7 KiB
XML
53 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
|
android:key="pref_key_enable_notifications"
|
|
android:title="@string/preferences__notifications"
|
|
android:summary="@string/preferences__display_message_notifications_in_status_bar"
|
|
android:defaultValue="true" />
|
|
|
|
<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" />
|
|
|
|
<ListPreference
|
|
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.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"
|
|
android:title="@string/preferences__inthread_notifications"
|
|
android:summary="@string/preferences__play_inthread_notifications"
|
|
android:dependency="pref_key_enable_notifications"
|
|
android:defaultValue="true" />
|
|
|
|
<ListPreference
|
|
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" />
|
|
</PreferenceScreen> |