ConnectionService: implement onReject()

Forgot this for incoming calls
This commit is contained in:
Peter Cai 2022-03-12 13:08:42 -05:00
parent 6ca2ffd6ea
commit d8d49e03a0
1 changed files with 7 additions and 0 deletions

View File

@ -274,6 +274,13 @@ public class ConnectionService extends android.telecom.ConnectionService {
rtpConnection.get().acceptCall();
}
@Override
public void onReject() {
this.rtpConnection = xmppConnectionService.getJingleConnectionManager().findJingleRtpConnection(account, with, sessionId);
rtpConnection.get().rejectCall();
setDisconnected(new DisconnectCause(DisconnectCause.LOCAL));
}
@Override
public void onDisconnect() {
if (rtpConnection == null || rtpConnection.get() == null) {