diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-03-29 23:18:09 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-03-29 23:18:09 +0200 |
commit | d06e09b9573179db2dce897ea310e80c26940dda (patch) | |
tree | adfc7539f6f6bb1e8219d79e3016db188e1b9f4c /src/main/java/de/pixart/messenger/ui/ConversationFragment.java | |
parent | 0407f5960c846c19715f3716096769663b3ab919 (diff) |
register open conversation with notification service
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConversationFragment.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java index 84af05329..7e9fb1aec 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java @@ -1815,6 +1815,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke this.activity.xmppConnectionService.updateConversation(this.conversation); } updateChatState(this.conversation, msg); + this.activity.xmppConnectionService.getNotificationService().setOpenConversation(null); } } @@ -1899,6 +1900,8 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke } if (activity != null) { activity.onConversationRead(this.conversation); + //TODO if we only do this when this fragment is running on main it won't *bing* in tablet layout which might be unnecessary since we can *see* it + activity.xmppConnectionService.getNotificationService().setOpenConversation(this.conversation); } } |