mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Added announcements
This commit is contained in:
@@ -106,14 +106,22 @@ class NotificationHelper {
|
||||
progress.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
nm.createNotificationChannel(progress);
|
||||
|
||||
// Update
|
||||
if (!Helper.isPlayStoreInstall()) {
|
||||
// Update
|
||||
NotificationChannel update = new NotificationChannel(
|
||||
"update", context.getString(R.string.channel_update),
|
||||
NotificationManager.IMPORTANCE_HIGH);
|
||||
update.setSound(null, Notification.AUDIO_ATTRIBUTES_DEFAULT);
|
||||
update.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
nm.createNotificationChannel(update);
|
||||
|
||||
// Announcements
|
||||
NotificationChannel announcements = new NotificationChannel(
|
||||
"announcements", context.getString(R.string.channel_announcements),
|
||||
NotificationManager.IMPORTANCE_HIGH);
|
||||
announcements.setSound(null, Notification.AUDIO_ATTRIBUTES_DEFAULT);
|
||||
announcements.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
nm.createNotificationChannel(announcements);
|
||||
}
|
||||
|
||||
// Warnings
|
||||
|
||||
Reference in New Issue
Block a user