aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-06-03 15:48:51 +0200
committeriNPUTmice <daniel@gultsch.de>2014-06-03 15:48:51 +0200
commitcedc1f40b37aaecfef60f0bf63d30d24fa280e82 (patch)
tree9e5ea7fc174519144f43b325960a6d5a546c1248 /res
parent99793fa909f1d754d5dc0d7cb4d36ba289ac92e3 (diff)
answer to xep 184 message receipts. fixes #95
Diffstat (limited to '')
-rw-r--r--res/values/arrays.xml16
-rw-r--r--res/values/strings.xml2
-rw-r--r--res/xml/preferences.xml8
3 files changed, 24 insertions, 2 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 09fd3cc7..15ec940f 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <array name="resources">
+ <string-array name="resources">
<item>Mobile</item>
<item>Phone</item>
<item>Tablet</item>
<item>Conversations</item>
<item>Android</item>
- </array>
+ </string-array>
<string-array name="filesizes">
<item>never</item>
<item>256 KB</item>
@@ -19,4 +19,16 @@
<item>524288</item>
<item>1048576</item>
</string-array>
+ <string-array name="message_acks">
+ <item>never</item>
+ <item>when received</item>
+ <item>when read</item>
+ <item>when received and when read</item>
+ </string-array>
+ <string-array name="message_acks_values">
+ <item>0</item>
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ </string-array>
</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index d3a7a91c..d469caf3 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -145,6 +145,8 @@
<string name="pref_advanced_options">Advanced Options</string>
<string name="pref_never_send_crash">Never send crash reports</string>
<string name="pref_never_send_crash_summary">By sending in stack traces you are helping the ongoing development of Conversations</string>
+ <string name="pref_auto_acknowledge_messages">Acknowledge Messages</string>
+ <string name="pref_auto_acknowledge_messages_summary">Allows your contact to know whether or not you have received or read a specific message</string>
<string name="openpgp_error">OpenKeychain reporeted an error</string>
<string name="error_decrypting_file">I/O Error decrypting file</string>
<string name="error_copying_image_file">Error copying image file.</string>
diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml
index 4cc2f822..bf304161 100644
--- a/res/xml/preferences.xml
+++ b/res/xml/preferences.xml
@@ -22,6 +22,14 @@
android:entries="@array/filesizes"
android:entryValues="@array/filesizes_values"
android:defaultValue="524288"/>
+ <ListPreference
+ android:key="auto_acknowledge_messages"
+ android:title="@string/pref_auto_acknowledge_messages"
+ android:summary="@string/pref_auto_acknowledge_messages_summary"
+ android:entries="@array/message_acks"
+ android:entryValues="@array/message_acks_values"
+ android:defaultValue="2"
+ />
</PreferenceCategory>
<PreferenceCategory
android:title="@string/pref_notification_settings">