kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix early ringing state on slow connections.
rodzic
3a8591fdfb
commit
4c7bd80f72
|
@ -30,7 +30,7 @@ class AndroidCallConnection(private val context: Context, val recipientId: Recip
|
||||||
|
|
||||||
override fun onShowIncomingCallUi() {
|
override fun onShowIncomingCallUi() {
|
||||||
Log.i(TAG, "onShowIncomingCallUi()")
|
Log.i(TAG, "onShowIncomingCallUi()")
|
||||||
WebRtcCallService.update(context, CallNotificationBuilder.TYPE_INCOMING_RINGING, recipientId)
|
WebRtcCallService.update(context, CallNotificationBuilder.TYPE_INCOMING_CONNECTING, recipientId)
|
||||||
setRinging()
|
setRinging()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,7 @@ public class CallNotificationBuilder {
|
||||||
if (type == TYPE_INCOMING_CONNECTING) {
|
if (type == TYPE_INCOMING_CONNECTING) {
|
||||||
builder.setContentText(context.getString(R.string.CallNotificationBuilder_connecting));
|
builder.setContentText(context.getString(R.string.CallNotificationBuilder_connecting));
|
||||||
builder.setPriority(NotificationCompat.PRIORITY_MIN);
|
builder.setPriority(NotificationCompat.PRIORITY_MIN);
|
||||||
|
builder.setContentIntent(null);
|
||||||
} else if (type == TYPE_INCOMING_RINGING) {
|
} 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.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));
|
builder.addAction(getServiceNotificationAction(context, WebRtcCallService.denyCallIntent(context), R.drawable.ic_close_grey600_32dp, R.string.NotificationBarManager__decline_call));
|
||||||
|
|
Ładowanie…
Reference in New Issue