mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 07:37:29 +00:00
Add support for notification reminders.
// FREEBIE Closes #1623 Fixes #323
This commit is contained in:
@@ -184,4 +184,22 @@
|
||||
<item>@drawable/ic_send_sms_secure</item>
|
||||
<item>@drawable/ic_send_push</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_repeat_alerts_entries">
|
||||
<item>Never</item>
|
||||
<item>One time</item>
|
||||
<item>Two times</item>
|
||||
<item>Three times</item>
|
||||
<item>Five times</item>
|
||||
<item>Ten times</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_repeat_alerts_values" translatable="false">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
<item>3</item>
|
||||
<item>5</item>
|
||||
<item>10</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
@@ -6,6 +6,19 @@
|
||||
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="green"
|
||||
@@ -22,12 +35,6 @@
|
||||
android:entries="@array/pref_led_blink_pattern_entries"
|
||||
android:entryValues="@array/pref_led_blink_pattern_values" />
|
||||
|
||||
<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:key="pref_key_inthread_notifications"
|
||||
android:title="@string/preferences__inthread_notifications"
|
||||
@@ -35,9 +42,11 @@
|
||||
android:dependency="pref_key_enable_notifications"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<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_repeat_alerts"
|
||||
android:defaultValue="0"
|
||||
android:title="Repeat alerts"
|
||||
android:dependency="pref_key_enable_notifications"
|
||||
android:entries="@array/pref_repeat_alerts_entries"
|
||||
android:entryValues="@array/pref_repeat_alerts_values" />
|
||||
</PreferenceScreen>
|
Reference in New Issue
Block a user