Safer to use NotificationManagerCompat rather than NotificationManager

Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
This commit is contained in:
Dariusz Olszewski 2021-12-11 16:33:01 +01:00 committed by Marcel Hibbe
parent 2f4aa35c53
commit 39f69003b5
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -138,7 +138,7 @@ object NotificationUtils {
context.resources.getString(R.string.nc_notification_channel_messages), context.resources.getString(R.string.nc_notification_channel_messages),
context.resources.getString(R.string.nc_notification_channel_messages), context.resources.getString(R.string.nc_notification_channel_messages),
true, true,
NotificationManager.IMPORTANCE_HIGH, NotificationManagerCompat.IMPORTANCE_HIGH,
soundUri, soundUri,
audioAttributes, audioAttributes,
null, null,