aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/ui/ConversationActivity.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-03-08 06:25:35 +0100
committerDaniel Gultsch <daniel@gultsch.de>2014-03-08 06:25:35 +0100
commitaa31732ea3b66201780975eae3305c9e80cc2d11 (patch)
tree3bc36d403a85250722ac05e70dccad891d8695f1 /src/eu/siacs/conversations/ui/ConversationActivity.java
parent83c5fdaf0efcb3c85c0d753b347d0a53c7ac9495 (diff)
last part. update notification if user reads them
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/ui/ConversationActivity.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/ui/ConversationActivity.java b/src/eu/siacs/conversations/ui/ConversationActivity.java
index f8e22dad..07ac5518 100644
--- a/src/eu/siacs/conversations/ui/ConversationActivity.java
+++ b/src/eu/siacs/conversations/ui/ConversationActivity.java
@@ -232,6 +232,7 @@ public class ConversationActivity extends XmppActivity {
invalidateOptionsMenu();
if (!getSelectedConversation().isRead()) {
getSelectedConversation().markRead();
+ UIHelper.updateNotification(getApplicationContext(), getConversationList(), false);
updateConversationList();
}
}
@@ -400,8 +401,6 @@ public class ConversationActivity extends XmppActivity {
public void onStart() {
super.onStart();
- NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
- nm.cancelAll();
if (conversationList.size()>=1) {
onConvChanged.onConversationListChanged();
}