aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/de/pixart/messenger/services/NotificationService.java24
-rw-r--r--src/main/res/values/strings.xml3
2 files changed, 27 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/NotificationService.java b/src/main/java/de/pixart/messenger/services/NotificationService.java
index 4cdde8390..913dd6f1e 100644
--- a/src/main/java/de/pixart/messenger/services/NotificationService.java
+++ b/src/main/java/de/pixart/messenger/services/NotificationService.java
@@ -71,6 +71,9 @@ public class NotificationService {
public static final int ERROR_NOTIFICATION_ID = NOTIFICATION_ID_MULTIPLIER * 6;
public static final String MESSAGES_CHANNEL_ID = "messages";
public static final String FOREGROUND_CHANNEL_ID = "foreground";
+ public static final String BACKUP_CHANNEL_ID = "backup";
+ public static final String UPDATE_CHANNEL_ID = "appupdate";
+ public static final String VIDEOCOMPRESSION_CHANNEL_ID = "compression";
public static final String ERROR_CHANNEL_ID = "error";
private final XmppConnectionService mXmppConnectionService;
@@ -118,6 +121,27 @@ public class NotificationService {
foregroundServiceChannel.setGroup("status");
notificationManager.createNotificationChannel(foregroundServiceChannel);
+ final NotificationChannel backupChannel = new NotificationChannel(BACKUP_CHANNEL_ID,
+ c.getString(R.string.backup_channel_name),
+ NotificationManager.IMPORTANCE_LOW);
+ backupChannel.setShowBadge(false);
+ backupChannel.setGroup("status");
+ notificationManager.createNotificationChannel(backupChannel);
+
+ final NotificationChannel videoCompressionChannel = new NotificationChannel(VIDEOCOMPRESSION_CHANNEL_ID,
+ c.getString(R.string.video_compression_channel_name),
+ NotificationManager.IMPORTANCE_LOW);
+ videoCompressionChannel.setShowBadge(false);
+ videoCompressionChannel.setGroup("status");
+ notificationManager.createNotificationChannel(videoCompressionChannel);
+
+ final NotificationChannel AppUpdateChannel = new NotificationChannel(UPDATE_CHANNEL_ID,
+ c.getString(R.string.app_update_channel_name),
+ NotificationManager.IMPORTANCE_LOW);
+ AppUpdateChannel.setShowBadge(false);
+ AppUpdateChannel.setGroup("status");
+ notificationManager.createNotificationChannel(AppUpdateChannel);
+
final NotificationChannel errorChannel = new NotificationChannel(ERROR_CHANNEL_ID,
c.getString(R.string.error_channel_name),
NotificationManager.IMPORTANCE_LOW);
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index 3c1e766da..0c05f4f3b 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -825,4 +825,7 @@
<string name="silent_messages_channel_description">This notification group is used to display notifications that should not trigger any sound. For example when being active on another device (Grace Period).</string>
<string name="pref_more_notification_settings">Notification Settings</string>
<string name="pref_more_notification_settings_summary">Importance, Sound, Vibrate</string>
+ <string name="video_compression_channel_name">Video compression</string>
+ <string name="backup_channel_name">Database backup</string>
+ <string name="app_update_channel_name">App update</string>
</resources>