mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 01:39:18 +02:00
tweak calls channel
This commit is contained in:
parent
534a75feaa
commit
3e95197d02
1 changed files with 5 additions and 5 deletions
|
@ -389,15 +389,15 @@ public class NotificationCenter {
|
||||||
|
|
||||||
// create a the channel
|
// create a the channel
|
||||||
if(!channelExists) {
|
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.setDescription("Informs about incoming calls.");
|
||||||
channel.setShowBadge(true);
|
channel.setShowBadge(true);
|
||||||
|
|
||||||
Uri ringtone = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE);
|
Uri ringtone = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE);
|
||||||
channel.setSound(ringtone,
|
channel.setSound(ringtone, new AudioAttributes.Builder()
|
||||||
new AudioAttributes.Builder().setContentType(AudioAttributes.CONTENT_TYPE_UNKNOWN)
|
.setUsage(AudioAttributes.USAGE_NOTIFICATION_RINGTONE)
|
||||||
.setUsage(AudioAttributes.USAGE_NOTIFICATION_RINGTONE)
|
.setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION)
|
||||||
.build());
|
.build());
|
||||||
notificationManager.createNotificationChannel(channel);
|
notificationManager.createNotificationChannel(channel);
|
||||||
}
|
}
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue