aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/ui/ConversationFragment.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-09-03 12:36:54 +0200
committeriNPUTmice <daniel@gultsch.de>2014-09-03 12:36:54 +0200
commit1a09a4706b7cc53225abd5c6124f3da2f784ad61 (patch)
treebb48f68460379c2d73ccce5bdd78b059b3a48358 /src/eu/siacs/conversations/ui/ConversationFragment.java
parent1f378bffc80c73d23cb62106c912043504ce7fca (diff)
added ability to disable notifications for specific conversations - fixed #322
Diffstat (limited to 'src/eu/siacs/conversations/ui/ConversationFragment.java')
-rw-r--r--src/eu/siacs/conversations/ui/ConversationFragment.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/ui/ConversationFragment.java b/src/eu/siacs/conversations/ui/ConversationFragment.java
index b0fd4a033..d0e5bdb4c 100644
--- a/src/eu/siacs/conversations/ui/ConversationFragment.java
+++ b/src/eu/siacs/conversations/ui/ConversationFragment.java
@@ -406,6 +406,16 @@ public class ConversationFragment extends Fragment {
break;
}
}
+ if (this.conversation.isMuted()) {
+ showSnackbar(R.string.notifications_disabled, R.string.enable, new OnClickListener() {
+
+ @Override
+ public void onClick(View v) {
+ conversation.setMutedTill(0);
+ updateMessages();
+ }
+ });
+ }
if (this.conversation.getMessages().size() == 0) {
this.messageList.clear();
messagesLoaded = false;