diff options
author | steckbrief <steckbrief@chefmail.de> | 2016-02-09 22:08:43 +0100 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2016-02-09 22:08:43 +0100 |
commit | 72114d732427266024cdd6e27cd8d1aa60afae2f (patch) | |
tree | 3e8243bbe950e64823f06b5b7078f3c6829fd992 | |
parent | 899a39cbf74dcd35f2a62e1fd6499de4ba6193fd (diff) |
Fixes FS#135: condition NOT message.isRead() added to check if notification should be shown for a message
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/thedevstack/conversationsplus/parser/MessageParser.java | 2 | ||||
-rw-r--r-- | src/main/java/de/thedevstack/conversationsplus/services/NotificationService.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/thedevstack/conversationsplus/parser/MessageParser.java b/src/main/java/de/thedevstack/conversationsplus/parser/MessageParser.java index 85c38e12..8c7d8efd 100644 --- a/src/main/java/de/thedevstack/conversationsplus/parser/MessageParser.java +++ b/src/main/java/de/thedevstack/conversationsplus/parser/MessageParser.java @@ -376,7 +376,7 @@ public class MessageParser extends AbstractParser implements && ConversationsPlusPreferences.autoDownloadFileLink() && mXmppConnectionService.isDownloadAllowedInConnection()) { manager.createNewDownloadConnection(message); - } else if (!message.isRead()) { + } else { mXmppConnectionService.getNotificationService().push(message); } } else { //no body diff --git a/src/main/java/de/thedevstack/conversationsplus/services/NotificationService.java b/src/main/java/de/thedevstack/conversationsplus/services/NotificationService.java index f3ef271c..b02b4d82 100644 --- a/src/main/java/de/thedevstack/conversationsplus/services/NotificationService.java +++ b/src/main/java/de/thedevstack/conversationsplus/services/NotificationService.java @@ -126,10 +126,10 @@ public class NotificationService { } public void push(final Message message) { - mXmppConnectionService.updateUnreadCountBadge(); if (!notify(message)) { return; } + mXmppConnectionService.updateUnreadCountBadge(); final boolean isScreenOn = isInteractive(); |