Refactoring

pull/153/head
M66B 6 years ago
parent e87fe918a7
commit 1fc72d0e41

@ -1724,9 +1724,6 @@ class Core {
.addAction(actionArchive.build()) .addAction(actionArchive.build())
.addAction(actionTrash.build()); .addAction(actionTrash.build());
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O)
mbuilder.setSound(null);
if (pro) { if (pro) {
if (!TextUtils.isEmpty(message.subject)) if (!TextUtils.isEmpty(message.subject))
mbuilder.setContentText(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()); notifications.add(mbuilder.build());
} }

Loading…
Cancel
Save