From 91ac7aa33bb91472ccf4a86b6f2351c4154685ac Mon Sep 17 00:00:00 2001 From: vanitasvitae Date: Fri, 24 Jun 2016 13:39:52 +0200 Subject: [PATCH] Prevent showing 'new message snackbar' in notification center --- .../github/dfa/diaspora_android/activity/MainActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java b/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java index 039503b7..22b26597 100644 --- a/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java +++ b/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java @@ -790,7 +790,7 @@ public class MainActivity extends AppCompatActivity if (item != null) { if (notificationCount > 0) { item.setIcon(R.drawable.ic_bell_ring_white_24dp); - if(!snackbarNewNotification.isShown()) + if(!snackbarNewNotification.isShown() && !webView.getUrl().equals("https://" + podDomain + "/notifications")) snackbarNewNotification.show(); } else { item.setIcon(R.drawable.ic_bell_outline_white_24dp); @@ -824,7 +824,7 @@ public class MainActivity extends AppCompatActivity if (item != null) { if (conversationCount > 0) { item.setIcon(R.drawable.ic_message_text_white_24dp); - if(!snackbarNewNotification.isShown()) + if(!snackbarNewNotification.isShown() && !webView.getUrl().equals("https://" + podDomain + "/notifications")) snackbarNewNotification.show(); } else { item.setIcon(R.drawable.ic_message_text_outline_white_24dp);