From 25211f13b37ecef64d6fa9a382a2c30d212452ae Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 2 Jun 2016 00:24:37 +0200 Subject: make grace period configurable --- src/main/res/values/arrays.xml | 12 +++++++++++ src/main/res/values/strings.xml | 7 +++++-- src/main/res/xml/preferences.xml | 45 ++++++++++++++++++++++++---------------- 3 files changed, 44 insertions(+), 20 deletions(-) (limited to 'src/main/res') diff --git a/src/main/res/values/arrays.xml b/src/main/res/values/arrays.xml index e887546ae..48dbaabf6 100644 --- a/src/main/res/values/arrays.xml +++ b/src/main/res/values/arrays.xml @@ -83,4 +83,16 @@ @string/presence_xa @string/presence_dnd + + + @string/gp_short + @string/gp_medium + @string/gp_long + + + + 144 + 610 + 2584 + diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 2decae45c..51c658ab0 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -117,8 +117,8 @@ Blink notification light when a new message arrives Ringtone Play sound when a new message arrives - Notification grace period - Disable notifications for a short time after a carbon copy was received + Grace Period + The length of time Conversations keeps quite after seeing activity on another device Advanced Never send crash reports By sending in stack traces you are helping the ongoing development of Conversations @@ -649,4 +649,7 @@ Choose participants Creating conferenceā€¦ Invite again + Short + Medium + Long diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml index 80980417d..fb0103edd 100644 --- a/src/main/res/xml/preferences.xml +++ b/src/main/res/xml/preferences.xml @@ -36,6 +36,25 @@ android:key="show_notification" android:summary="@string/pref_notifications_summary" android:title="@string/pref_notifications"/> + + + - - - + android:key="grace_period_length" + android:title="@string/pref_notification_grace_period" + android:summary="@string/pref_notification_grace_period_summary" + android:defaultValue="144" + android:entries="@array/grace_periods" + android:entryValues="@array/grace_periods_values" + /> -- cgit v1.2.3