aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-03-09 20:32:19 +0100
committerChristian Schneppe <christian@pix-art.de>2017-03-09 20:32:19 +0100
commit2764f04c14bdc19ee1d267e43bafbffb29257c64 (patch)
tree51e9095f0f7b74daae77003564f79a2c5edf7c07 /src/main/res
parent297870eed0559ac7aec0dfd977dc9a8e381dcd3b (diff)
do not notify for messages from strangers by default
Diffstat (limited to '')
-rw-r--r--src/main/res/values/defaults.xml1
-rw-r--r--src/main/res/values/strings.xml2
-rw-r--r--src/main/res/xml/preferences.xml6
3 files changed, 9 insertions, 0 deletions
diff --git a/src/main/res/values/defaults.xml b/src/main/res/values/defaults.xml
index dd0ba1ccb..2b3d62f25 100644
--- a/src/main/res/values/defaults.xml
+++ b/src/main/res/values/defaults.xml
@@ -3,4 +3,5 @@
<string name="default_resource" translatable="false">Phone</string>
<bool name="portrait_only">true</bool>
<bool name="enter_is_send">false</bool>
+ <bool name="notifications_from_strangers">false</bool>
</resources> \ No newline at end of file
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index 899f79d49..b569381c3 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -749,4 +749,6 @@
<string name="block_jabber_id">Block Jabber ID</string>
<string name="corresponding_conversations_closed">Corresponding conversations closed.</string>
<string name="contact_blocked_past_tense">Contact blocked.</string>
+ <string name="pref_notifications_from_strangers">Notifications from strangers</string>
+ <string name="pref_notifications_from_strangers_summary">Notify for messages received from strangers.</string>
</resources>
diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml
index ba428aeb3..e3078f1a2 100644
--- a/src/main/res/xml/preferences.xml
+++ b/src/main/res/xml/preferences.xml
@@ -86,6 +86,12 @@
android:ringtoneType="notification"
android:summary="@string/pref_sound_summary"
android:title="@string/pref_sound" />
+ <CheckBoxPreference
+ android:defaultValue="@bool/notifications_from_strangers"
+ android:dependency="show_notification"
+ android:key="notifications_from_strangers"
+ android:summary="@string/pref_notifications_from_strangers_summary"
+ android:title="@string/pref_notifications_from_strangers" />
</PreferenceScreen>
<!--Attachments-->
<PreferenceScreen