mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Simplified alert handling
This commit is contained in:
@@ -244,14 +244,14 @@ public class ApplicationEx extends Application {
|
||||
nm.createNotificationChannel(update);
|
||||
}
|
||||
|
||||
// Warn
|
||||
// Warnings
|
||||
NotificationChannel warning = new NotificationChannel(
|
||||
"warning", getString(R.string.channel_warning),
|
||||
NotificationManager.IMPORTANCE_HIGH);
|
||||
warning.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
nm.createNotificationChannel(warning);
|
||||
|
||||
// Error
|
||||
// Errors
|
||||
NotificationChannel error = new NotificationChannel(
|
||||
"error",
|
||||
getString(R.string.channel_error),
|
||||
@@ -259,6 +259,14 @@ public class ApplicationEx extends Application {
|
||||
error.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
nm.createNotificationChannel(error);
|
||||
|
||||
// Server alerts
|
||||
NotificationChannel alerts = new NotificationChannel(
|
||||
"alerts",
|
||||
getString(R.string.channel_alert),
|
||||
NotificationManager.IMPORTANCE_HIGH);
|
||||
alerts.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);
|
||||
nm.createNotificationChannel(alerts);
|
||||
|
||||
// Contacts grouping
|
||||
NotificationChannelGroup group = new NotificationChannelGroup(
|
||||
"contacts",
|
||||
|
||||
Reference in New Issue
Block a user