mirror of
https://github.com/gsantner/dandelion
synced 2024-11-25 05:42:10 +01:00
Prevent showing 'new message snackbar' in notification center
This commit is contained in:
parent
ab4ffebb49
commit
91ac7aa33b
1 changed files with 2 additions and 2 deletions
|
@ -790,7 +790,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
if (notificationCount > 0) {
|
if (notificationCount > 0) {
|
||||||
item.setIcon(R.drawable.ic_bell_ring_white_24dp);
|
item.setIcon(R.drawable.ic_bell_ring_white_24dp);
|
||||||
if(!snackbarNewNotification.isShown())
|
if(!snackbarNewNotification.isShown() && !webView.getUrl().equals("https://" + podDomain + "/notifications"))
|
||||||
snackbarNewNotification.show();
|
snackbarNewNotification.show();
|
||||||
} else {
|
} else {
|
||||||
item.setIcon(R.drawable.ic_bell_outline_white_24dp);
|
item.setIcon(R.drawable.ic_bell_outline_white_24dp);
|
||||||
|
@ -824,7 +824,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
if (conversationCount > 0) {
|
if (conversationCount > 0) {
|
||||||
item.setIcon(R.drawable.ic_message_text_white_24dp);
|
item.setIcon(R.drawable.ic_message_text_white_24dp);
|
||||||
if(!snackbarNewNotification.isShown())
|
if(!snackbarNewNotification.isShown() && !webView.getUrl().equals("https://" + podDomain + "/notifications"))
|
||||||
snackbarNewNotification.show();
|
snackbarNewNotification.show();
|
||||||
} else {
|
} else {
|
||||||
item.setIcon(R.drawable.ic_message_text_outline_white_24dp);
|
item.setIcon(R.drawable.ic_message_text_outline_white_24dp);
|
||||||
|
|
Loading…
Reference in a new issue