Refactoring

This commit is contained in:
M66B 2019-03-19 18:40:41 +00:00
parent e87fe918a7
commit 1fc72d0e41
1 changed files with 4 additions and 4 deletions

View File

@ -1724,9 +1724,6 @@ class Core {
.addAction(actionArchive.build())
.addAction(actionTrash.build());
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O)
mbuilder.setSound(null);
if (pro) {
if (!TextUtils.isEmpty(message.subject))
mbuilder.setContentText(message.subject);
@ -1765,7 +1762,10 @@ class Core {
}
}
mbuilder.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_CHILDREN);
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O)
mbuilder.setSound(null);
else
mbuilder.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_CHILDREN);
notifications.add(mbuilder.build());
}