diff --git a/src/main/java/eu/siacs/conversations/services/NotificationService.java b/src/main/java/eu/siacs/conversations/services/NotificationService.java
index 8f50505147667624910e735b9413a51e93c31cfd..677dfd4d2423888aa3666e17f921c9bd7523aa3e 100644
--- a/src/main/java/eu/siacs/conversations/services/NotificationService.java
+++ b/src/main/java/eu/siacs/conversations/services/NotificationService.java
@@ -158,17 +158,12 @@ public class NotificationService {
public boolean notify(final Message message) {
final Conversation conversation = (Conversation) message.getConversation();
return message.getStatus() == Message.STATUS_RECEIVED
- && notificationsEnabled()
&& !conversation.isMuted()
&& (conversation.alwaysNotify() || wasHighlightedOrPrivate(message))
&& (!conversation.isWithStranger() || notificationsFromStrangers())
;
}
- private boolean notificationsEnabled() {
- return mXmppConnectionService.getBooleanPreference("show_notification", R.bool.show_notification);
- }
-
private boolean notificationsFromStrangers() {
return mXmppConnectionService.getBooleanPreference("notifications_from_strangers", R.bool.notifications_from_strangers);
}
diff --git a/src/main/res/values/defaults.xml b/src/main/res/values/defaults.xml
index 68db7d6fa657629d91078dec7b72dbfac05492dc..ac5f855c91222d42f0c5c82c62031b17a6eae23b 100644
--- a/src/main/res/values/defaults.xml
+++ b/src/main/res/values/defaults.xml
@@ -10,7 +10,6 @@
true
true
false
- true
true
true
false
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index ad98eda9920c14e28c09e52007f4084aace95f5e..7a2729ef55dd10f56fce04e7c377b350128434df 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -108,8 +108,6 @@
Quick Sharing
Immediately return to previous activity instead of opening the conversation after sharing something
Notification
- Notifications
- Notify when a new message arrives
Vibrate
Vibrate when a new message arrives
LED Notification
diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml
index 6c1038b456e27eca83acf10a2b4dfcf0a8095437..8bcc757a123b7d83ff51082c95b03b88521bee4d 100644
--- a/src/main/res/xml/preferences.xml
+++ b/src/main/res/xml/preferences.xml
@@ -43,20 +43,8 @@
-
-
@@ -68,33 +56,33 @@
android:value="messages" />
+
@@ -126,7 +114,6 @@