1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-24 21:32:07 +01:00

Prevent showing 'new message snackbar' in notification center

This commit is contained in:
vanitasvitae 2016-06-24 13:39:52 +02:00
parent ab4ffebb49
commit 91ac7aa33b

View file

@ -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);