From 3e95197d02de033e946b5e4354866e5ce0a30ed1 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Thu, 11 Sep 2025 16:33:15 +0200 Subject: [PATCH] tweak calls channel --- .../securesms/notifications/NotificationCenter.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java b/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java index 26aeadac6..a1c2e3314 100644 --- a/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java +++ b/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java @@ -389,15 +389,15 @@ public class NotificationCenter { // create a the channel if(!channelExists) { - NotificationChannel channel = new NotificationChannel(channelId, name, NotificationManager.IMPORTANCE_HIGH); + NotificationChannel channel = new NotificationChannel(channelId, name, NotificationManager.IMPORTANCE_MAX); channel.setDescription("Informs about incoming calls."); channel.setShowBadge(true); Uri ringtone = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE); - channel.setSound(ringtone, - new AudioAttributes.Builder().setContentType(AudioAttributes.CONTENT_TYPE_UNKNOWN) - .setUsage(AudioAttributes.USAGE_NOTIFICATION_RINGTONE) - .build()); + channel.setSound(ringtone, new AudioAttributes.Builder() + .setUsage(AudioAttributes.USAGE_NOTIFICATION_RINGTONE) + .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) + .build()); notificationManager.createNotificationChannel(channel); } } catch(Exception e) {