diff --git a/src/main/java/eu/siacs/conversations/services/NotificationService.java b/src/main/java/eu/siacs/conversations/services/NotificationService.java
index 8f5050514..677dfd4d2 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 68db7d6fa..ac5f855c9 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 ad98eda99..7a2729ef5 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 6c1038b45..8bcc757a1 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 @@