Fix early ringing state on slow connections.

This commit is contained in:
Cody Henthorne
2022-03-16 13:28:01 -04:00
parent 3a8591fdfb
commit 4c7bd80f72
2 changed files with 2 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ public class CallNotificationBuilder {
if (type == TYPE_INCOMING_CONNECTING) {
builder.setContentText(context.getString(R.string.CallNotificationBuilder_connecting));
builder.setPriority(NotificationCompat.PRIORITY_MIN);
builder.setContentIntent(null);
} else if (type == TYPE_INCOMING_RINGING) {
builder.setContentText(context.getString(recipient.isGroup() ? R.string.NotificationBarManager__incoming_signal_group_call : R.string.NotificationBarManager__incoming_signal_call));
builder.addAction(getServiceNotificationAction(context, WebRtcCallService.denyCallIntent(context), R.drawable.ic_close_grey600_32dp, R.string.NotificationBarManager__decline_call));