mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-05 16:45:08 +00:00
[Reveivenotification] Put notifications into own channel
Summary: This allows for more fine-grained control. CCBUG: 402488 Reviewers: #kde_connect, albertvaka Reviewed By: #kde_connect, albertvaka Subscribers: kdeconnect Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D17787
This commit is contained in:
@@ -17,6 +17,7 @@ public class NotificationHelper {
|
||||
public final static String DEFAULT = "default";
|
||||
public final static String MEDIA_CONTROL = "media_control";
|
||||
public final static String FILETRANSFER = "filetransfer";
|
||||
public final static String RECEIVENOTIFICATION = "receive";
|
||||
}
|
||||
|
||||
public static void notifyCompat(NotificationManager notificationManager, int notificationId, Notification notification) {
|
||||
@@ -73,6 +74,12 @@ public class NotificationHelper {
|
||||
|
||||
manager.createNotificationChannel(fileTransfer);
|
||||
|
||||
manager.createNotificationChannel(new NotificationChannel(
|
||||
Channels.RECEIVENOTIFICATION,
|
||||
context.getString(R.string.notification_channel_receivenotification),
|
||||
NotificationManager.IMPORTANCE_DEFAULT)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user